secondlife
Member
- Joined
- Aug 1, 2009
- Messages
- 298
- Reaction score
- 23
Hi guys,
I am trying to implement Extended Opcodes in my otc/server.
Im using this system from @BeniS:
Extended Opcodes (Server Side)
The opcode source it works correctly, but the script .LUA no.
My code extendedopcode.lua is:
Return this error in console when i login with OTC:
I have tried in many ways, without success. I can't find where is the error..
Someone can help me?
Thank you guys!!
I am trying to implement Extended Opcodes in my otc/server.
Im using this system from @BeniS:
Extended Opcodes (Server Side)
The opcode source it works correctly, but the script .LUA no.
My code extendedopcode.lua is:
Code:
function onExtendedOpcode(cid, opcode, buffer)
local premiumTime = getPlayerPremiumDays(cid)
doSendPlayerExtendedOpcode(cid, 52, "premiumTime")
return true
end
Return this error in console when i login with OTC:
Code:
[4:7:34.238] [Error - CreatureScript Interface]
[4:7:34.238] data/creaturescripts/scripts/extendedopcode.lua:onExtendedOpcode
[4:7:34.238] Description:
[4:7:34.238] data/creaturescripts/scripts/extendedopcode.lua:3: attempt to call global 'doSendPlayerExtendedOpcode' (a nil value)
[4:7:34.238] stack traceback:
[4:7:34.238] data/creaturescripts/scripts/extendedopcode.lua:3: in function <data/creaturescripts/scripts/extendedopcode.lua:1>
I have tried in many ways, without success. I can't find where is the error..
Someone can help me?
Thank you guys!!