Shanksera
New Member
- Joined
- Sep 23, 2008
- Messages
- 379
- Reaction score
- 1
I use this script
In RME i put on the magicforce field action id for example 5000 and it shows [LUA sciprt interface]blabla
Please Notice! That i got the same problem with this script
Code:
function onStepIn(cid, item, pos)
if isPlayer(cid) == TRUE then
if (item.actionid == 5000) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of Gold-City.")
doPlayerSetTown(cid,1)
elseif (item.actionid == 5001) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of CITY NAME City.")
doPlayerSetTown(cid,2)
elseif (item.actionid == 5002) then
doPlayerSendTextMessage(cid,22,"Now you are citizen of CITY NAME City.")
doPlayerSetTown(cid,3)
end
end
end
Code:
<!-- Residencia -->
<movevent event="StepIn" itemid="1387" script="temple.lua" />
In RME i put on the magicforce field action id for example 5000 and it shows [LUA sciprt interface]blabla
attempt to call a table value stack traceback:
Please Notice! That i got the same problem with this script
Code:
function onStepIn(cid, item, position, fromPosition)
if(item.actionid > 30020 and item.actionid < 30100) then
doPlayerSetTown(cid, item.actionid - 30020)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Welcome new citizen of " ..getTownName(getPlayerTown(cid))..".")
end
return TRUE
end