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

Lua Searching Script for Offline Trainer

Blysco

New Member
Joined
Oct 12, 2013
Messages
163
Reaction score
2
Hey, i have the Version 9,83 and i have a map which is from a lower version.
So i dont have Offline Trainer and that is the reason because i ask you for a Script or something else.
I dont know if i just need to add a Statur, but if you would explain it to me.
It would be pretty nice from you !
 
Simply add the new statues to your map (ID: 18488-18492) and assign a script to them.

Code:
local statues = {
   [18488] = SKILL_SWORD,
   [18489] = SKILL_AXE,
   [18490] = SKILL_CLUB,
   [18491] = SKILL_DISTANCE,
   [18492] = SKILL_MAGLEVEL
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
   if not isPremium(cid) then
     doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUNEEDPREMIUMACCOUNT)
     return true
   end

   if isPlayerPzLocked(cid) then
     return false
   end

   doPlayerSetOfflineTrainingSkill(cid, statues[item.itemid])
   doRemoveCreature(cid)
   return true
end
 
Back
Top