roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,188
- Solutions
- 34
- Reaction score
- 200
Added in (TFS) creaturescripts/expendeopcode.lua
and registred on login.
now in OTCV8, heres my doubt:
how can i check the opcode sended by the tfs?
gamelib/creature.lua
and registred on login.
Lua:
local verify = player:getStorageValue(123) > 0
if verify then
player:sendExtendedOpcode(51, "true")
end
now in OTCV8, heres my doubt:
how can i check the opcode sended by the tfs?
gamelib/creature.lua
Lua:
function Creature:onAppear()
if (self:isPlayer()) then
if self:getExtendedOpcode(51) == "true" then
print("have")
else
print("dont have")
end
end
end