• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

ORPG Item Bounty.

Status
Not open for further replies.
Level 4
Joined
May 10, 2009
Messages
64
For ticha. This is how you make monsters drop items.

ItemDrops.jpg


Change the random integer numbers to the chance you want.
Change the poison drops to the items you want the monster to drop.
Change the frog xD to the monster you want.

Oops. Third Line has no item xD.
 
For ticha. This is how you make monsters drop items.

ItemDrops.jpg


Change the random integer numbers to the chance you want.
Change the poison drops to the items you want the monster to drop.
Change the frog xD to the monster you want.

Oops. Third Line has no item xD.

You could do that so much better whith jass itempools.
Just check out the itempools tutorial. A monkey could do it.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
If this is supposed to be a system, it is very simple and it leaks.
This will cause lag and is inefficient (you need to create a trigger for every unit and the drop rate is hard to calculate).

A better trigger would be:

  • Drop Items
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set TempLoc = (Position of (Dying unit))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to Footman
        • Then - Actions
          • Set DropChance = 20
          • If ((Random integer number between 1 and 100) Less than or equal to DropChance) then do (Item - Create Tome of Experience at TempLoc) else do (Do nothing)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to Knight
        • Then - Actions
          • Set DropChance = 10
          • If ((Random integer number between 1 and 100) Less than or equal to DropChance) then do (Item - Create Phat Lewt at TempLoc) else do (Do nothing)
        • Else - Actions
      • Custom script: call RemoveLocation(udg_TempLoc)
Leakless, dropchance is in % and you can add all units in only 1 trigger.
 
Status
Not open for further replies.
Top