Jump to content
  • 0

@help quest using cash


PapaZola

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

how i can make add cash point 500 on this npc

morocc_in,80,100,4 script Gunslinger Quest 523,{
mes "[Dynamic Quest NPC]";
mes "Which quest would you like to do?";
mes "^FF0000Visit Our Forum To Know Effect Quest^000000";
mes "^FF0000www.1worldro.com/forum^000000";
set .i,select(.Menu$);
next;
goto Quest_Setup;
OnInit:
waitingroom "Gunslinger Set",0;
set .BuildQuest,1;
set .Menu$,"";
set .i,1;
goto Quest_Setup;
Quest_Display:
if(.BuildQuest) {
if(compare(getarg(0),"Stop Quest Loading")) {
set .BuildQuest,0;
end;
}
set .Menu$,.Menu$+getarg(0)+":";
set .i,.i+1;
goto Quest_Setup;
}
mes "[" + getarg(0) + "]";
mes "I require the following:";
for(set @i,1; getarg(@i)!=0; set @i,@i+2) mes "^FF0000"+((countitem(getarg(@i))>=getarg(@i+1))? "^00FF00":"") + "" + getarg(@i+1) + " " + getitemname(getarg(@i)) + " [" + countitem(getarg(@i)) + "/" + getarg(@i+1) + "]";
mes "^000000In exchange, I will give you:^0000FF";
for(set @i,@i+1; getarg(@i)!=0; set @i,@i+2) mes getarg(@i+1) + " " + getitemname(getarg(@i));
if(select("Exchange:No thanks")==2) close;
for(set @i,1; getarg(@i)!=0; set @i,@i+2) if(countitem(getarg(@i)) < getarg(@i+1)) {
next;
mes "You have " + countitem(getarg(@i)) + " " + getitemname(getarg(@i)) + ", while I require " + getarg(@i+1) + ".";
mes "Please obtain ^FF0000" + (getarg(@i+1)-countitem(getarg(@i))) + " more " + getitemname(getarg(@i)) + "^000000.";
close;
}
for(set @i,1; getarg(@i)!=0; set @i,@i+2) delitem getarg(@i),getarg(@i+1);
for(set @i,@i+1; getarg(@i)!=0; set @i,@i+2) getitem getarg(@i),getarg(@i+1);
close;
Quest_Setup:
switch(.i) {
case 1: callsub Quest_Display,"^FF9900Gunslinger Set[1]^000000^CC00FF3 Items Will Get^000000",949,150,7510,10,7562,2,20003,10,20004,10,20005,5,0,28022,1,28023,1,28024,1,0;

default: callsub Quest_Display,"Stop Quest Loading";
}
}

Edited by Arcenciel
Codeboxed
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...