hm solved the weapon problem by adding a ', 4' in giveitem.. saw it in other scripts so i tried it out and now its working.. but chest npc problem still remains =(
This is a discussion on InitTrigger within the Tales of Pirates forums, part of the MMO and MMORPG Developments category; hello, i'm having trouble with my first tries with InitTrigger.. i've made 3 npc.. 2 that give death weapons (each ...
hello,
i'm having trouble with my first tries with InitTrigger..
i've made 3 npc.. 2 that give death weapons (each class has 2 different types, so i made 2 npc) and 1 that gives death chest (armor, gloves, boots)..
the 2 weapon npc work.. only problem is that im getting a GiveItem error.. it takes the required items, then gives me that error and doesnt give the weapon..
the chest npc doesnt work at all x.x it's like it isn't customized.. although i wrote exatly the same as for the weapon ones, just different item id and texts..
ill copy paste a part of the script so u can see what could be wrong..
InitTrigger()
TriggerCondition( 1, HasItem, 3457, 25 )
TriggerCondition( 1, HasItem, 2588, 30 )
TriggerAction( 1,TakeItem, 3457, 25 )
TriggerAction( 1,TakeItem, 2588, 30 )
TriggerAction( 1,GiveItem, 2837, 1, 4 )
TriggerAction( 1, JumpPage, 9)
TriggerFailure( 1, JumpPage, 10 )
Talk( 3, "So you want the crusader chest?" )
Text( 3, "Yes, please", MultiTrigger, GetMultiTrigger(), 1)
thats for the chest.. weapons r same just id is different and GiveItem gives error
hope u can help,
ty in advance =D
--- edit: added the ', 4' in GiveItem which solved the GiveItem error. ---
Last edited by Peping; 17-02-10 at 04:46 PM.
hm solved the weapon problem by adding a ', 4' in giveitem.. saw it in other scripts so i tried it out and now its working.. but chest npc problem still remains =(
nvm this thread ._. found the problem.. function name was too long >.>