Hi everyone.
I have a serious problem with the script because when the player is standing on FLOOR the script works
but if it enters a teleport that is supposed to teleport to that mesh, it is a bug and crashes the game
I will add that actionIf is set on the 9050 map
@@ EDIT @@
It only happens when the player does not have a given storage and I am going to teleport to the square that should not
I have a serious problem with the script because when the player is standing on FLOOR the script works
but if it enters a teleport that is supposed to teleport to that mesh, it is a bug and crashes the game
I will add that actionIf is set on the 9050 map
Code:
<movevent type="StepIn" actionid="9050" event="script" value="IceCityFloor.lua" />
Lua:
--VIP Floor script By Sh4dy All Rights Reserved--
function onStepIn(cid, item, position, fromPosition)
if getPlayerStorageValue(cid, 10137) > 0 then
doCreatureSay(cid, "Ice City Player!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), 30)
else
doTeleportThing(cid, fromPosition)
doCreatureSay(cid, "Sorry, but only Ice City can enter player after completing the Ice City Quest!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), 2)
end
return true
end
It only happens when the player does not have a given storage and I am going to teleport to the square that should not
Attachments
-
1.png1.3 MB · Views: 9 · VirusTotal
-
2.png321 KB · Views: 9 · VirusTotal
-
3.png13.3 KB · Views: 8 · VirusTotal