Jump to content
  • 0

A script makes this map drop a certain item


cmsm94

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  


OnNPCKillEvent:

if ( strcharinfo( 3 ) != "prt_fild01" || rand( 100 ) > 5 ) end;

getitem 909, 1;

end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  


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

}

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