Jump to content
  • 0

A script makes this map drop a certain item


Question

Posted

Hi all how are you XD,

 

Request a script that, make let say prt_fild01 if you kill all the monster anyone doesn't matter there is a chance or more chance of you getting a gold.

 

let say prt_fild01 have 

pupa

lunatic

poring

drops

 

 

This script overwrite the drops of this monster by adding additional item to map, anymonster in the map have been kill will get a gold. Can you add the % percentage of its drop also. TQVM

2 answers to this question

Recommended Posts

Posted


- script Gold -1,{

OnNPCKillEvent:

if(strcharinfo(3) == "prt_fild01") {

getmapxy(.@gold$,.@gx,.@gy,0);

set .@Gold_Chance,rand(1,10); //Configure for chance

if(.@Gold_Chance == 1) //10% chance. Change to '< 2' for 20%, etc..

makeitem 969,1,.@gold$,.@gx,.@gy;

}

end;

}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...