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

[7.72] OTHire 0.0.1b - Based in OTServ Trunk (Latest)

could you post Player::removeExperience() ?, unless you use standard othire
 
What's with quests, when you move back to Main you can't get your quests again? That should be right so.
I don't remember if you loose your quest items, storages, etc... once you get rooked.
I have to check sources on our private server to compare both two. Not an easy task.
 
I need help with premium expired,
how can I check player's town and send him to temple?
 
Hello Elpulpo! :)

For this you just need a .lua script under your creaturescripts to check when you login.

Name as you wish!

Code:
[code=lua]local freetemple = {
tp_pos = {x = 1000, y = 1000, z = 7}
}

if isPlayer(cid) then
if not isPremium(cid) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've been teleported due to the end of your Premium Account.")
doTeleportThing(cid, freetemple.tp_pos, true)
end
return true
end
[/CODE]
 
Sorry for the double again, this thread makes me sick because I can't edit my posts.
I forgot something, if a player went through a Citizenship portal then you might want to reset it aswell!

Code:
local freetemple = {
tp_pos = {x = 1000, y = 1000, z = 7}
}

if isPlayer(cid) then
if not isPremium(cid) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've been teleported due to the end of your Premium Account.")
doPlayerSetTown(cid, *replaceherewiththetownID*)
doTeleportThing(cid, freetemple.tp_pos, true)
end
return true
end
 
Hello Elpulpo! :)

For this you just need a .lua script under your creaturescripts to check when you login.

Name as you wish!

Code:
[code=lua]local freetemple = {
tp_pos = {x = 1000, y = 1000, z = 7}
}

if isPlayer(cid) then
if not isPremium(cid) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've been teleported due to the end of your Premium Account.")
doTeleportThing(cid, freetemple.tp_pos, true)
end
return true
end
[/CODE]
Nice one!
In RL Tibia you get teleported to Thais in case you are a premium citizen, and teleport to your free town temple in other cases.
 
Nice one!
In RL Tibia you get teleported to Thais in case you are a premium citizen, and teleport to your free town temple in other cases.
Remembering I'm not a good lua scripter.

Though I added a line in the next post for you, so even if the player got another citizenship @ premium area you can reset it to thais, probably townID 3 and you need to fix x, y and z, but I think you already knew that :D
 
In order to work with OTHire you need to modify the script a bit:
Code:
local freetemple = {x = 32369, y = 32241, z = 7}
local Player = Actor.create(cid)

if isPlayer(cid) then
if not isPremium(cid) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've been teleported due to the end of your Premium Account.")
doPlayerSetTown(cid, *replaceherewiththetownID*)
Player:Teleport(freetemple)
end
return true
end
 
Hey guys i have a big problem. I have RPG OTS with custom items and custom map. Its base on distribution yurots edited but its time to change distribution so i download othire and compile on my vps. I cant load my map i dont know why. Its screen from console, i tried copy my items.otb from my rme editor to engine but its not work. My map is created for 7.6 version i RME 2.2 . I have items from 8.6 tibia. In my old distrubtion all work ,but on othire i have problems. Please help me. I spend 3 days , 5 hours everyday to fix this and i dont have any idea what to do. Srry for my english. James

With my items.otb
https://scr.hu/1xnw/yikag

Whit items.otb from othire
http://scr.hu/1xnw/dwxku
 
Hey guys i have a big problem. I have RPG OTS with custom items and custom map. Its base on distribution yurots edited but its time to change distribution so i download othire and compile on my vps. I cant load my map i dont know why. Its screen from console, i tried copy my items.otb from my rme editor to engine but its not work. My map is created for 7.6 version i RME 2.2 . I have items from 8.6 tibia. In my old distrubtion all work ,but on othire i have problems. Please help me. I spend 3 days , 5 hours everyday to fix this and i dont have any idea what to do. Srry for my english. James

With my items.otb
https://scr.hu/1xnw/yikag

Whit items.otb from othire
http://scr.hu/1xnw/dwxku
https://github.com/TwistedScorpio/OTHire/wiki/How-to-use-RME-for-this-OTServer
https://github.com/TwistedScorpio/OTHire/wiki/How-to-use-RME-for-this-OTServer
 
i do this, and open my map , but i have red squares on map, something wrong with items.otb i think. help me
 
when i copy other items.otb to engine othire , server give error cant load items.otb
 
I tested it again, I really do not have that issue, just hits through windows, not walls.. And I haven't touched those parts of the source

im preety sure u test it wrong... try is exacly like on any of my screens... like example here (yes! mwall got blockprojectile attribute!):

xj7iXWA.png
 
Well yea, but I cannot reproduce this with all walls..
also it does only affect mobs, me as player cant shoot pass walls, also not mwalls
 
Back
Top