Item Scripts

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,969
118
290
Stoke, UK
Not sure if this has been posted.. but here it is anyway.


This will make a TalismanBundle that will Auto Open to 6 Talismans when double clicked.

-------------------------------------------------------------------------

In 00Default.txt

[@Main]
#ACT
goto @Talisman_ItemClick


[@Talisman_ItemClick]
#CALL [System\ItemScripts\ItemEvents.txt] @EventItem_AllItems

-------------------------------------------------------------------------

In ItemEvents.txt (Location as shown above - but this can be called from anywhere)

[@EventItem_AllItems]
{
#ACT
SetItemEvent 61 20 @HolyTalismanEvent_Main


[@HolyTalismanEvent_Main]
#IF
CheckItem TalismanBundle(Holy) 1
#ACT
Take TalismanBundle(Holy) 1
Give HolyTalisman(L) 6
Break
#ELSEACT
Break
}
-------------------------------------------------------------------------

In the Database, make a new item with the following stats (Other stats can be changed)

Stdmode Shape Throw
61 20 1


-------------------------------------------------------------------------

If you want to make more items, just increment the Shape to the next number and call it using

SetItemEvent 61 ** @Whatever