Ecstacy
Mothafuckaaa
For some reason the 0.3.6pl1 dev I had didn't contain these functions, lol, can find it now but I get errors, lol.
cool
will you release fly system?
[01/03/2011 16:00:29] [Error - CreatureScript Interface]
[01/03/2011 16:00:29] data/creaturescripts/scripts/moverpieza.lua:onMoveItem
[01/03/2011 16:00:29] Description:
[01/03/2011 16:00:29] data/creaturescripts/scripts/moverpieza.lua:2: attempt to index global 'moveitem' (a nil value)
[01/03/2011 16:00:29] stack traceback:
[01/03/2011 16:00:29] data/creaturescripts/scripts/moverpieza.lua:2: in function <data/creaturescripts/scripts/moverpieza.lua:1>
function onMoveItem(moveItem, frompos, position, cid)
if moveitem.itemid == 6500 then
doPlayerSendTextMessage(cid,25,'This item is blocked! you cannot move it!')
return false
end
end
creatureevent.cpp
..\creatureevent.cpp(118): error C2839: invalid return type 'CreatureEvent **' for overloaded 'operator ->'
..\creatureevent.cpp(118): error C2039: 'second' : is not a member of 'std::_Vector_iterator<_Myvec>'
with
[
_Myvec=std::_Vector_val<CreatureEvent *,std::allocator<CreatureEvent *>>
]
..\creatureevent.cpp(118): error C2227: left of '->getEventType' must point to class/struct/union/generic type
..\creatureevent.cpp(118): error C2065: 'CREATURE_EVENT_MOVEITEM' : undeclared identifier
..\creatureevent.cpp(119): error C2839: invalid return type 'CreatureEvent **' for overloaded 'operator ->'
..\creatureevent.cpp(119): error C2039: 'second' : is not a member of 'std::_Vector_iterator<_Myvec>'
with
[
_Myvec=std::_Vector_val<CreatureEvent *,std::allocator<CreatureEvent *>>
]
..\creatureevent.cpp(119): error C2227: left of '->executeMoveItem' must point to class/struct/union/generic type
..\creatureevent.cpp(215): error C2065: 'CREATURE_EVENT_MOVEITEM' : undeclared identifier
..\creatureevent.cpp(282): error C2065: 'CREATURE_EVENT_MOVEITEM' : undeclared identifier
..\creatureevent.cpp(282): error C2051: case expression not constant
..\creatureevent.cpp(338): error C2065: 'CREATURE_EVENT_MOVEITEM' : undeclared identifier
..\creatureevent.cpp(338): error C2051: case expression not constant
..\creatureevent.cpp(468): error C2653: 'LuaScriptInterface' : is not a class or namespace name
..\creatureevent.cpp(468): error C3861: 'pushThing': identifier not found
..\creatureevent.cpp(469): error C2653: 'LuaScriptInterface' : is not a class or namespace name
..\creatureevent.cpp(469): error C3861: 'pushPosition': identifier not found
..\creatureevent.cpp(470): error C2653: 'LuaScriptInterface' : is not a class or namespace name
..\creatureevent.cpp(470): error C3861: 'pushPosition': identifier not found
Build FAILED.
local ItemID = {2222, 2651, 2653, 2220, 2655}
function onMoveItem(moveItem, frompos, position, cid)
if(isInArray(ItemID, moveItem.itemid)) then
doPlayerSendCancel(cid, "You cannot drop this item!")
return false
end
end
i'ts because you are using in tfs 0.4, this code is for 0.3.6 ONLY!Your code makes onKill function stops working, and when I does not declare a function onMove in .xml file then the server stops working.
I managed to made the whole code works with latest 0.4, but mock said that I shouldn't use 0.4 since it can crash my server =/