| 01-04-2008, 10:35 AM | #1 |
native SetItemDropID takes item whichItem, integer unitId returns nothing
wtf is this? |
| 01-04-2008, 10:50 AM | #2 |
wtf !? lol =) never mentioned this ^^ // test it ?! =) |
| 01-04-2008, 11:30 AM | #3 |
How the fuck can I test it? It returns nothing. |
| 01-04-2008, 12:26 PM | #4 |
Create an item, execute that command to on that item and do all the stuff you want (take a hero pick the item, drop the item, use the item, destroy the item) |
| 01-04-2008, 12:35 PM | #5 |
How about you use this native to assign 'hfoo' to some rune of rebirth, then you make some hero pick that rune... |
| 01-04-2008, 04:18 PM | #6 |
:pray: ^^ (did you looked at Blizzard.j ? =)) yes it's somekind "internal shit" JASS://*************************************************************************** //* //* Drop item //* //* Makes the given unit drop the given item //* //* Note: This could potentially cause problems if the unit is standing //* right on the edge of an unpathable area and happens to drop the //* item into the unpathable area where nobody can get it... //* //*************************************************************************** function UnitDropItem takes unit inUnit, integer inItemID returns item local real x local real y local real radius = 32 local real unitX local real unitY local item droppedItem if (inItemID == -1) then return null endif set unitX = GetUnitX(inUnit) set unitY = GetUnitY(inUnit) set x = GetRandomReal(unitX - radius, unitX + radius) set y = GetRandomReal(unitY - radius, unitY + radius) set droppedItem = CreateItem(inItemID, x, y) call SetItemDropID(droppedItem, GetUnitTypeId(inUnit)) call UpdateStockAvailability(droppedItem) return droppedItem endfunction so Vex +rep ^^ // but honestly no one need this feature -_- // btw the mystery around the ress rune is solved :P |
