Godz4t4n1c
New Member
- Joined
- Sep 9, 2015
- Messages
- 51
- Reaction score
- 1
I have a system that transforms one item to another here I leave it ...
Version:
Movements
Movements/Scripts
The problem is that it does not do what the script says, it just says this:
Error: sdasda10.png - Click to see more photos on ServImg
I do not see any error in the console or anything but the stone does not work .....
I can not understand why the stone does not work, could you help me or what is my mistake?
Version:
Lua:
[2/2/2018 2:31:5] The OTX Server Version: (2.X.S - 1) - Codename: (Crying Damson)
[2/2/2018 2:31:5] Compiled with Microsoft Visual C++ version 12.0 for arch 32 Bits at Sep 1 2015 15:56:14
Movements
Lua:
<movevent type="AddItem" tileitem="8303" itemid="12606;12603;12604;12607;12605;12610;12609;8849;2547" event="script" value="evolitem.lua"/>
Movements/Scripts
Lua:
local c = {
Distance = CONST_ANI_EXPLOSION,
Effect = CONST_ME_BLOCKHIT,
StoneID = 8303,
[12606] = {149, 10},
[12603] = {150, 10},
[12604] = {151, 10},
[12607] = {152, 10},
[12605] = {153, 10},
[12610] = {121, 10},
[12609] = {148, 10},
[8849] = {110, 10},
[2547] = {6529, 10},
}
function onAddItem(moveitem, tileitem, position, cid)
local t = c[tileitem.itemid]
if moveitem.itemid == c.StoneID then
if t then
doSendDistanceShoot(getThingPos(cid), position, c.Distance)
doRemoveItem(moveitem.uid, 1)
if math.random(0,100) < t[2] then
doSendMagicEffect(position, c.Effect)
doTransformItem(tileitem.uid, t[1])
else
doPlayerSendCancel(cid, "Failed")
doSendMagicEffect(position, CONST_ME_POFF)
end
end
end
return true
end
The problem is that it does not do what the script says, it just says this:
Error: sdasda10.png - Click to see more photos on ServImg
I do not see any error in the console or anything but the stone does not work .....
I can not understand why the stone does not work, could you help me or what is my mistake?