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

[Request] Complex Trainer Script

splifus

New Member
Joined
Oct 18, 2007
Messages
122
Reaction score
3
Location
Canada
Well, I need a npc that will allow you to enter a door(I will give the id later ..im not at home atm). Once you enter in the door you got 120 min of training on a trainer. After that u get tped out of the training zone. Its possible to do that?? If yes , some can do it please? I really need it and dont really know how to do -.^

Timax25~
 
Mokerhamer made this script for me.
Code:
function onUse(cid, item, frompos, item2, topos)

    storevalue = 37 --------------Where the time is stored
    exhausttime = 600 --------------How long to stay inside in Seconds
    outside = {x=500, y=1441, z=4} ------------------Where he should be teleported when time's out.
    
    
if item.itemid == 7038 or item.itemid == 7047 then
    if item.actionid == 1300 then
        if (exhaust(cid, storevalue, exhausttime) == 1) then
            doSendMagicEffect(frompos, 12)
            doPlayerSendTextMessage(cid, 20,"You have 10 minutes to train then you'll be teleported outside.") then
        if(exhaust(cid, storevalue, exhausttime) == 1) then
            doTeleportThing(cid,outside,0)
            doPlayerSendCancel(cid,"You're done training.")
        else
            doPlayerSendCancel(cid,"Sorry, this ability costs 1500gp.")
        end
    end
end
    return 1
end
end
 
ty alot for this empty does it work for TFS and can u make it npc?
or mokerhammer made it and u got no idea on how to edit it or make it npc?
 
Back
Top