• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Movement script crashing server, how to repair it?

Scooty

Enemia.EU
Joined
Jul 24, 2010
Messages
564
Reaction score
14
Location
Kraków
Hi, i have simple script:


movements.xml

PHP:
	<movevent type="Equip" itemid="9932" slot="feet" level="130" event="script" value="test.lua"/>
	<movevent type="DeEquip" itemid="9932" slot="feet" event="script" value="test.lua"/>

test.lua

PHP:
function onEquip(cid, item, slot)
return true
end

function onDeEquip(cid, item, slot)
return true
end


When im wearing on firewalker boots(id 9932), after relog server crashing.

Console:


Naruszenie ochrony pamięci

^ i know, its polish error, im using polish debian(i have the same problem on ubuntu)


Can someone tell me how to repair it?
 
Last edited:
If u wanna make firewalker from 130lv (just), use this:
LUA:
	<movevent type="Equip" itemid="9932" level="130" slot="feet" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="9932" slot="feet" event="function" value="onDeEquipItem"/>
 
Not sure if this will work but you get the idea what i trying to do :/
Code:
local storage = 10000

function onLogout(cid)
if getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 9932 then
setPlayerStorageValue(cid,storage, 1)
doRemoveItem(cid, CONST_SLOT_FEET).itemid == 9932)
return true
end

This is the login function!
Code:
local storage = 10000

function onLogin(cid)
if getPlayerStorageValue(cid, storage) >= 1 then
doPlayerAddItem(cid, CONST_SLOT_FEET).itemid == 9932)
setPlayerStorageValue(cid,storage, 0) 
end
return true
end
 
Erexo: i want to do something else in lua, i cant use only function onEquip
otswe: your script maybe can be help but its not good solution...


maybe someone have other idea?
 
Back
Top