local area = { frompos = {x=,y=,z=}, topos = = {x=,y=,z=} }
function onDeath(cid)
if isInRange(getThingPos(cid),area.frompos, area.topos) then
for i = 1, 10 do
local item = getPlayerSlotItem(cid,i).uid
if item.uid > 0 then
doRemoveItem(item.uid)
end
end
end
return true
end
[13:28:06.377] [Error - LuaInterface::loadFile] data/creaturescripts/scripts/death.lua:1: unexpected symbol near '='
[13:28:06.377] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/death.lua)
[13:28:06.377] data/creaturescripts/scripts/death.lua:1: unexpected symbol near '='
local area = { frompos = {x=1,y=1,z=1}, topos = {x=1,y=1,z=1} }
function onDeath(cid)
if isInRange(getThingPos(cid),area.frompos, area.topos) then
for i = 1, 10 do
local item = getPlayerSlotItem(cid,i).uid
if item.uid > 0 then
doRemoveItem(item.uid)
end
end
end
return true
end
local pos = {x=,y=,z=} -- ring position
local itemid,itemid2 = 5516,5513 -- first item, second item
function onUse(cid, item, fromPosition, itemEx, toPosition)
for i = 1, 10 do
local item = getPlayerSlotItem(cid,i).uid
if item.uid > 0 then
doRemoveItem(item.uid)
end
end
doTeleportThing(cid,pos)
doSendMagicEffect(getThingPos(cid),10)
doPlayerAddItem(cid,itemid,1)
doPlayerAddItem(cid,itemid2,1)
return doTransformItem(item.uid,(item.itemid == 1945 and 1946 or 1945) )
end
This error didn't appear until I used your scriptthis have nothng to do with my script.