Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

Random Reward NPC


PapaZola

Question


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

hello can i have a random reward npc

example player win a woe

player will get a random reward only 1 piece

-diablos armor

-diablos robe

-doablos manteau

-diablos shoes

after get the reward,npc auto load player to maintown

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  90
  • Reputation:   2
  • Joined:  11/14/11
  • Last Seen:  

prontera,151,151,5 script Prize Giver 107,{
mes "[Prize Giver]";
mes "Here your random prize";
next;
switch(rand(1, 4))
{
case 1:
getitem 2375,1;
goto warp2;
case 2:
getitem 2433,1;
goto warp2;
case 3:
getitem 2374,1;
goto warp2;
case 4:
getitem 2537,1;
goto warp2;
}
warp2:
warp "prontera" ,151,157;
end;
}

Messy script..

/pif

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2373
  • Joined:  10/28/11
  • Last Seen:  

setarray .@ItemID[0],607,608,512;
getitem .@ItemID[ rand( getarraysize( .@ItemID ) ) ],1;
warp "prontera",155,181;
end;

Link to comment
Share on other sites

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...