Renusek
beton beton beton punk!
Really useful function! Should be added to TFS! Rep.
Mock said:if frompos == {x=100,y=100,z=100} then
because frompos return a stackpos, so you have to do it:
if frompos == {x=100,y=100,z=100,stackpos=255} then
that not the way to compare tables.@Colandus
in lua i cannot compare tables? o0
@Colandus
in lua i cannot compare tables? o0
local t1 = {x=4, y=5}
local t2 = {x=4, y=5}
local t3 = t2
if(t1 == t2) then -- false
end
if(t2 == t3) then -- true because they are same
end
117 creatureevent.cpp 'CREATURE_EVENT_MOVEITEM' was not declared in this scope
117 creatureevent.cpp In member function 'virtual bool CreatureEvent::configureEvent(xmlNode*)':
214 creatureevent.cpp 'CREATURE_EVENT_MOVEITEM' was not declared in this scope
214 creatureevent.cpp In member function 'virtual std::string CreatureEvent::getScriptEventName() const':
285 creatureevent.cpp 'CREATURE_EVENT_MOVEITEM' was not declared in this scope
285 creatureevent.cpp In member function 'virtual std::string CreatureEvent::getScriptEventParams() const':
345 creatureevent.cpp 'CREATURE_EVENT_MOVEITEM' was not declared in this scope
345 creatureevent.cpp *** [obj-console//creatureevent.o] Error 1
CREATURE_EVENT_DEATH,
CREATURE_EVENT_MOVEITEM,
doCreateItem(setItemAttribute(item.uid, "uid", XXX)
Down to 7 errors I appreciate the help so far a lot
Code:../creatureevent.cpp: In member function 'uint32_t CreatureEvents::executeMoveItems(Creature*, Item*, const Position&, const Position&)': ../creatureevent.cpp:115: error: conversion from 'CreatureEventList' to non-scalar type 'std::vector<CreatureEvent*, std::allocator<CreatureEvent*> >' requested ../creatureevent.cpp: In member function 'uint32_t CreatureEvent::executeMoveItem(Creature*, Item*, const Position&, const Position&)': ../creatureevent.cpp:461: error: 'LuaScriptInterface' has not been declared ../creatureevent.cpp:462: error: 'LuaScriptInterface' has not been declared ../creatureevent.cpp:463: error: 'LuaScriptInterface' has not been declared mingw32-make: *** [obj//creatureevent.o] Error 1 Execution terminated
Bump? I'd like to use this
Doesn`t work must beenfunction 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
function onMoveItem(moveItem, frompos, position, cid)
if moveItem.itemid == 1988 then
doPlayerSendTextMessage(cid,25,'This item is blocked! you cannot move it!')
return false
end
return true
end