Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Magic Weapon Drop
Author Message
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #1
Magic Weapon Drop
I need a script to make my magic weapons randomly drop when someone kills like a boss or a strong monster. Like.. sometimes you get a weapon drop and sometimes you dont, so like rarely lol.

Thanks for any help!
06-03-2013 07:38 AM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #2
RE: Magic Weapon Drop
I would recommend you to download basic scriptpack 2.0 or so. Look at those scripts like sphere_template_loot.scp and scripts in the folder "npc".

Inspire by that, there is the on=@npcrestock, item=xxx.
06-03-2013 07:52 AM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #3
RE: Magic Weapon Drop
I know that, I'm talking about when a player kills a monster that there is a "chance" a weapon will drop, not all the time. Rare drops is what im talkin about
06-03-2013 08:35 AM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #4
RE: Magic Weapon Drop
I don't know if somebody can do that simplier but add there if statement.

if <r> <= 100 => 10% to drop the thing.

Code:
if <r> <= 100
   item=xxx
endif
(This post was last modified: 06-03-2013 09:50 AM by Alaric.)
06-03-2013 09:48 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #5
RE: Magic Weapon Drop
You can setup loot templates like this:

ITEM=random_potion,1,R4
ITEM=i_potion_heal,1,R4

The three values are: defname (or template name), Amount, Chance

...In my example above, chance is a random number from 0-4, which means there is only a 20% chance the item will be in the loot.
06-03-2013 10:23 AM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #6
RE: Magic Weapon Drop
Thank you got it to work!
06-03-2013 01:07 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)