leoxdnardo
The Player
Can someone tell me what is missing to work
lua:11 attempt to index local 't' (a nil value)
Code:
local config = {
[30010] = {acid=30010, cityi=Survia, townidi=2, posi={x=615, y=1107, z=7}},
[30011] = {acid=30011, cityi=Dwarvia, townidi=3, posi={x=816, y=1189, z=11}},
[30012] = {acid=30012, cityi=Cadorvia, townidi=4, posi={x=947, y=1128, z=7}}
}
function onStepIn(cid, item, pos)
local t = config[item.aid]
if item.actionid == t.acid then
doPlayerSetTown(cid,t.townidi)
doTeleportThing(cid,t.posi)
doSendMagicEffect(getCreaturePosition(cid),12)
doPlayerSendTextMessage(cid,22, "You are now a citizen of .. t.cityi.")
end
return 1
end
lua:11 attempt to index local 't' (a nil value)
Last edited: