Jump to content
  • 0

changing pods game?


Hatake Kakashi

Question


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.05
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

hello, how to change pods aka proof of donation into zeny? this is a game for pods = item

but i want it to change into 300k zeny = item

 

thank you..

 

turbo_room,71,97,0 script Athena Shin 717,{
mes .npc_n$;
mes "Only "+.itm_a+" "+.itm_n$+" to play this random chance mini-game!";
mes "Would you like to play?"; next;
if(select("Yes:No:What can I win?")&2) {
if(@menu-2) {
set .@mes$, "You can win: ";
for(set(.@a,1);.@a<=.len_i;set(.@a,.@a+1)) {
set .@itm$, getitemname(.itm_l[(.@a-1)]);
if(.@a%10&&.@a<=.len_i&&.@a!=.len_i) {
set .@mes$, .@mes$+((!((.@a%10)-9)&&.@a<=.len_i)?
"and "+.@itm$+".":.@itm$+", ");
} else {
mes .npc_n$;
if(.@a<.len_i) {
mes .@mes$; set .@mes$, "You can also win: "+.@itm$+", "; next;
if(select("Next:Close")&2) close;
} else {
mes .@mes$+"and "+.@itm$+"."; close;
}
}
}
} else close;
}
if (countitem(.itm_p) < .itm_a) {
mes .npc_n$;
mes "You don't have "+.itm_a+" "+.itm_n$;
close;
}
mes .npc_n$;
mes "Here you go!";
delitem .itm_p,.itm_a;
set .@get, .itm_l[rand(.len_i-1)];
if(compare(.itm_a$,""+.@get)) announce strnpcinfo(0)+": "+strcharinfo(0)+" got ["+getitemname(.@get)+"]!",bc_all|bc_yellow;
getitem .@get,1;
close;
 
OnInit:
set      .npc_n$, "[^00FF00Athena Shin^000000]"                                ; //NPC Name.
setarray .itm_l , 7539, 5171, 2629, 1530, 5022, 2541, 2345, 13921, 2383, 13414, 13550, 2423, 2347, 2349, 2351; //Item List.
set      .itm_a$, "7539, 5171, 2629, 2383, 2541, 1530,5022, 2345, 13921, 13414, 13550, 2423, 2347, 2349, 2351"                                           ; //Item IDs in this string are announced.
set      .len_i , getarraysize(.itm_l)                                         ; //Length of array.
set      .itm_a , 100                                                          ; //Cost of npc.
set      .itm_p , 7179                                                         ; //Item used as currency.
set      .itm_n$, getitemname(.itm_p)                                          ; //Item Name.
}
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...