Hi all can someone help me to understand "getitemname" because i make this script is successful announce but the item name show "null"
i make bet npc that will announce item that player get but annouce show "null"
here my test script...
prontera,151,183,6 script RikaExchange4_F_KAFRA8,{if(checkweight(Knife,1)==0||(MaxWeight-Weight)<10000){
mes "[Rika]";
close;}
mes "[Rika]";
mes "Hi place your bet....";
next;switch(select("2M Zeny","5M Zeny","10M Zeny")){case1:
mes "[Rika]";
mes "Good good, let me just check";
next;if(Zeny<2000000){
mes "[Rika]";
mes "Sorry, but you lack some money...";
close;}setZeny,Zeny-2000000;
getitem F_Rand(656,657,505,645,506,14510), rand(1,1);
announce "[Rika] : "+strcharinfo(PC_NAME)+" get "+getitemname("")+".",bc_all;
close;case2:
mes "[Rika]";
mes "Good good, let me just check";
next;if(Zeny<5000000){
mes "[Rika]";
mes "Sorry, but you lack some money...";
close;}setZeny,Zeny-5000000;
getitem F_Rand(656,657,505,645,506,14510), rand(1,1);
announce "[Rika] : "+strcharinfo(PC_NAME)+" get "+getitemname("")+".",bc_all;
close;case3:
mes "[Rika]";
mes "Good good, let me just check";
next;if(Zeny<10000000){
mes "[Rika]";
mes "Sorry, but you lack some money...";
close;}setZeny,Zeny-10000000;
getitem F_Rand(656,657,505,645,506,14510), rand(1,1);
announce "[Rika] : "+strcharinfo(PC_NAME)+" get "+getitemname("")+".",bc_all;
close;}OnPCLoadMapEvent:if(strcharinfo(3)== strnpcinfo(4))
showevent QTYPE_QUEST2,1;
end;}
Hi all can someone help me to understand "getitemname" because i make this script is successful announce but the item name show "null"
i make bet npc that will announce item that player get but annouce show "null"
here my test script...
how to make is show item name not "null"
Share this post
Link to post
Share on other sites