ziggy46802
Active Member
- Joined
- Aug 19, 2012
- Messages
- 418
- Reaction score
- 27
Here is my script
moveevents.xml
minocheckpoint.lua
Now when I walk on the tile with action id 1001, i get the message "9010 is now at 2" but when I check my MYSQL database for the storage value 9010, it doesnt even exist???
moveevents.xml
Code:
<!-- Mino check point -->
<moveevent event="StepIn" itemid="406" script="minocheckpoint.lua"/>
minocheckpoint.lua
Code:
function onStepIn(cid, item, position, fromPosition)
if item.actionid == 1001 then
setPlayerStorageValue(cid,9010,2)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "9010 is now at 2")
end
return true
end
Now when I walk on the tile with action id 1001, i get the message "9010 is now at 2" but when I check my MYSQL database for the storage value 9010, it doesnt even exist???