• 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!

Not valid packet size

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
[18/10/2009 01:56:03] [Warning - Protocol::RSA_decrypt] Not valid packet size

Code:
local function randi()
 doTeleportThing(cid, {1081, 1023, 7}, TRUE)
 return TRUE
end

local function randii()
 doTeleportThing(cid, {1000, 1000, 7}, TRUE)
 return TRUE
end

local rand = math.random(1,2)

function onLogin(cid)
 if rand == 1 then
  addEvent(randi, 2000)
   elseif rand == 2 then
   addEvent(randii, 2000)
  end
 return TRUE
end

Code:
<event type="login" name="PlayerTele" event="script" value="teleport.lua"/>

Help-me!!!
 
bump
edit:
[18/10/2009 13:05:31] Lua Script Error: [CreatureScript Interface]
[18/10/2009 13:05:31] in a timer event called from:
[18/10/2009 13:05:31] data/creaturescripts/scripts/teleport.lua:onLogin

[18/10/2009 13:05:31] luaDoTeleportThing(). Thing not found
 
try

LUA:
function onLogin(cid)
 if rand == 1 then
  addEvent(randi, 2000, cid)
   elseif rand == 2 then
   addEvent(randii, 2000, cid)
  end
 return TRUE
end
 
Back
Top