Omni
Ultra Cool Member
- Reaction score
- 37
does the system support units to?
i mean somehow to combine units?
mount hippogryfh (or whatver that stupid creature is called)
you can use the ability to "combine" units
does the system support units to?
i mean somehow to combine units?
Histroy:
Vesion 1.2 (25th of May 2007)
Added effects feature to the system.
Another leak cleaned.
Updated the chapter "Using the system" in the READ ME.
Version 1.1 (24th of May 2007)
Added special effect to the system.
Cleared a small leak.
Improved testing map.
Version 1.0 (23th of May 2007)
Original system created and posted.
function RecipeSysCon ...
...
local integer id
loop
exitwhen pickedSlot > 5
set id = GetItemTypeId(UnitItemInSlot(triggerer,pickedSlot))
if id == a or id == b or id == c or id == d or id == e or id == f then
set count = count + 1
//exitwhen true
endif
set pickedSlot= pickedSlot + 1
endloop
...
if count == sum then
set pickedSlot = 0
loop
exitwhen pickedSlot > 5
set pickedItem = UnitItemInSlot(triggerer,pickedSlot)
set id = GetItemTypeId(pickedItem)
if id == a or id == b or id == c or id == d or id == e or id == f then
call UnitRemoveItem(triggerer,pickedItem)
call RemoveItem(pickedItem)
//exitwhen true
endif
set pickedSlot= pickedSlot + 1
endloop
How in the world can you count the same item twice? That requires the player to move the item from a allready counted slot to a non-counted with the speed of light. If your scared of counting two items of the same item type, just set it's integer variable to zero once it's counted.I would if I could but I don't want to count the same item twice.
Yeah, not everyone got NewGen for structs, especially in thehelper.net.
No problem in using 2 items of the same type:
Custom script: call RecipeSysSet(ItemType,ItemType,0,0,0,0)
call RecipeSysSet(039;rde3039;,039;rwiz039;,039;rwiz039;,039;belv039;,039;rst1039;,0,0," "," ") // slammer