Is your data pack up to date? aside from your npc scripts etc..
Because according to the data pack on github your code should execute properly.
Can you explain more "pack up to date" please , i have compiled thru the guides in the thread and put the npcs files into data/npcs
If both of these conditions is false it returns false and the else statement executes
Code:if getPlayerMoney(cid) >= price or isPlayerVip(cid) == TRUE then if isPlayerVip(cid) == TRUE then selfSay('Set the sails!') doTeleportThing(cid, town_boat) doSendMagicEffect(getCreaturePosition(cid), 10) talk_state = 0 else selfSay('Set the sails!') doPlayerRemoveMoney(cid, price) doTeleportThing(cid, town_boat) doSendMagicEffect(getCreaturePosition(cid), 10) talk_state = 0 end else npcHandler:say('You don\'t have enough money.') talk_state = 0 end
So should i replace TRUE with FALSE or what? iam kinda new to scripting.
Kinds Regards.