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

Website,Boats, EK,ED,MS,RP.

Spankarn

New Member
Joined
Jul 1, 2010
Messages
101
Reaction score
1
Hello guys and girls!
I've just started with a ot server but i really need help to make a website!

And do anyone of you got script to Elite knight, Master sorcerer, Elder druid and Royal paladin because now i just got Knight, paladin, druid, and sorcerer...
i want the promotions thing :)

How do i change so i can sail free on boats?XD
I guess it's not hard but i can't find it :p

So i really need help with a website and the boat thingy and Promotion.:)

Thanks!
 
Well for website i can just recommend to watch this -> http://otland.net/f479/video-tutorial-nothing-fully-working-ot-server-website-shop-system-166818/
You'll probably understand it better if you watch it.
About the boat, just change the cost in the lua file. If you can't find it post your script here.
The promotion guy should be included in your distro, what distro are you using?

Regards Anteyz

karmia = {x=453, y=481, z=6}
venore = {x=430, y=420, z=6}
desert = {x=400, y=482, z=6}
inferna = {x=518, y=439, z=6}
tiquanda = {x=568, y=465, z=7}
premia = {x=434, y=618, z=7}
liberty = {x=573, y=694, z=7}
folda = {x=266, y=317, z=6}
tortoise = {x=620, y=630, z=7}
dragonlandia = {x=660, y=846, z=6}

local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos, cid, item, frompos, item2, topos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Good bye then.')
focus = 0
talk_start = 0
end
end


function onCreatureTurn(creature)

end


function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end


function onCreatureSay(cid, type, msg)
msg = string.lower(msg)
if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
selfSay('Hiho ' .. getCreatureName(cid) .. '! Can I take you to karmia, venore, desert, inferna, dragonlandia, tiquanda, tortoise island, folda, premia e liberty bay. Pointing out that travel costs 50 gps.')
focus = cid
talk_start = os.clock()

elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorry, ' .. getCreatureName(cid) .. '! I talk to you in a minute.')

elseif focus == cid then
talk_start = os.clock()

if msgcontains(msg, 'karmia') then
if(doPlayerRemoveMoney(cid, 50) == TRUE) then
doTeleportThing(cid,karmia)
doSendMagicEffect(karmia,10)
selfSay("Let's GO")
focus = 0
talk_start = 0
else
selfSay("Sorry, you don\'t have enough money.")
end

elseif msgcontains(msg, 'venore') then
if(doPlayerRemoveMoney(cid, 50) == TRUE) then
doTeleportThing(cid,venore)
doSendMagicEffect(venore,10)
selfSay("Let's GO")
focus = 0
talk_start = 0
else
selfSay("Sorry, you don\'t have enough money.")
end

elseif msgcontains(msg, 'desert') then
if(doPlayerRemoveMoney(cid, 50) == TRUE) then
doTeleportThing(cid,desert)
doSendMagicEffect(desert,10)
selfSay("Let's GO")
focus = 0
talk_start = 0
else
selfSay("Sorry, you don\'t have enough money.")
end

elseif msgcontains(msg, 'dragonlandia') then
if(doPlayerRemoveMoney(cid, 50) == TRUE) then
doTeleportThing(cid,dragonlandiat)
doSendMagicEffect(dragonlandia,10)
selfSay("Let's GO")
focus = 0
talk_start = 0
else
selfSay("Sorry, you don\'t have enough money.")
end

elseif msgcontains(msg, 'inferna') then
if(doPlayerRemoveMoney(cid, 50) == TRUE) then
doTeleportThing(cid,inferna)
doSendMagicEffect(inferna,10)
selfSay("Let's GO")
focus = 0
talk_start = 0
else
selfSay("Sorry, you don\'t have enough money.")
end

elseif msgcontains(msg, 'tiquanda') then
if(doPlayerRemoveMoney(cid, 50) == TRUE) then
doTeleportThing(cid,tiquanda)
doSendMagicEffect(tiquanda,10)
selfSay("Let's GO")
focus = 0
talk_start = 0
else
selfSay("Sorry, you don\'t have enough money.")
end

elseif msgcontains(msg, 'premia') then
if(doPlayerRemoveMoney(cid, 50) == TRUE) then
doTeleportThing(cid,premia)
doSendMagicEffect(premia,10)
selfSay("Let's GO")
focus = 0
talk_start = 0
else
selfSay("Sorry, you don\'t have enough money.")
end

elseif msgcontains(msg, 'liberty') then
if(doPlayerRemoveMoney(cid, 50) == TRUE) then
doTeleportThing(cid,liberty)
doSendMagicEffect(liberty,10)
selfSay("Let's GO")
focus = 0
talk_start = 0
else
selfSay("Sorry, you don\'t have enough money.")
end

elseif msgcontains(msg, 'folda') then
if(doPlayerRemoveMoney(cid, 50) == TRUE) then
doTeleportThing(cid,folda)
doSendMagicEffect(folda,10)
selfSay("Let's GO")
focus = 0
talk_start = 0
else
selfSay("Sorry, you don\'t have enough money.")
end

elseif msgcontains(msg, 'tortoise island') then
if(doPlayerRemoveMoney(cid, 50) == TRUE) then
doTeleportThing(cid,tortoise)
doSendMagicEffect(tortoise,10)
selfSay("Let's GO")
focus = 0
talk_start = 0
else
selfSay("Sorry, you don\'t have enough money.")
end

elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
selfSay('Bye ' .. creatureGetName(cid) .. ', go back.')
focus = 0
talk_start = 0

elseif msg ~= "" then
selfSay('how? I do not understand!')
talk_state = 0
end
end
end

function onCreatureChangeOutfit(creature)
end

function onThink()
doNpcSetCreatureFocus(focus)
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next please!!...')
end
focus = 0
talk_start = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Good Bye')
focus = 0
talk_start = 0
end
end
end
There is my Boat.lua...
can't find anything:/
 
The boat.lua is easy to fix.
Search for all the (doPlayerRemoveMoney(cid, 50) ,
then change this to (doPlayerRemoveMoney(cid, 0)
Try using the ctrl + h shortcut, this will search for all the (doPlayerRemoveMoney(cid, 50) and you can imidiately change all of the found ones to (doPlayerRemoveMoney(cid, 0)
Hope this helped.
 
well it's easier to just delete it.
Lua:
karmia = {x=453, y=481, z=6}
venore = {x=430, y=420, z=6}
desert = {x=400, y=482, z=6}
inferna = {x=518, y=439, z=6}
tiquanda = {x=568, y=465, z=7}
premia = {x=434, y=618, z=7}
liberty = {x=573, y=694, z=7}
folda = {x=266, y=317, z=6}
tortoise = {x=620, y=630, z=7}
dragonlandia = {x=660, y=846, z=6}

local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos, cid, item, frompos, item2, topos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Good bye then.')
focus = 0
talk_start = 0
end
end


function onCreatureTurn(creature)

end


function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end


function onCreatureSay(cid, type, msg)
msg = string.lower(msg)
if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
selfSay('Hiho ' .. getCreatureName(cid) .. '! Can I take you to karmia, venore, desert, inferna, dragonlandia, tiquanda, tortoise island, folda, premia e liberty bay. Pointing out that the travel\'s free!.')
focus = cid
talk_start = os.clock()

elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorry, ' .. getCreatureName(cid) .. '! I talk to you in a minute.')

elseif focus == cid then
talk_start = os.clock()

if msgcontains(msg, 'karmia') then
doTeleportThing(cid,karmia)
doSendMagicEffect(karmia,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'venore') then
doTeleportThing(cid,venore)
doSendMagicEffect(venore,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'desert') then
doTeleportThing(cid,desert)
doSendMagicEffect(desert,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'dragonlandia') then
doTeleportThing(cid,dragonlandiat)
doSendMagicEffect(dragonlandia,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'inferna') then
doTeleportThing(cid,inferna)
doSendMagicEffect(inferna,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'tiquanda') then
doTeleportThing(cid,tiquanda)
doSendMagicEffect(tiquanda,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'premia') then
doTeleportThing(cid,premia)
doSendMagicEffect(premia,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'liberty') then
doTeleportThing(cid,liberty)
doSendMagicEffect(liberty,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'folda') then
doTeleportThing(cid,folda)
doSendMagicEffect(folda,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'tortoise island') then
doTeleportThing(cid,tortoise)
doSendMagicEffect(tortoise,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
selfSay('Bye ' .. creatureGetName(cid) .. ', go back.')
focus = 0
talk_start = 0

elseif msg ~= "" then
selfSay('how? I do not understand!')
talk_state = 0
end
end
end

function onCreatureChangeOutfit(creature)
end

function onThink()
doNpcSetCreatureFocus(focus)
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next please!!...')
end
focus = 0
talk_start = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Good Bye')
focus = 0
talk_start = 0
end
end
end
Regards Anteyz
 
The boat.lua is easy to fix.
Search for all the (doPlayerRemoveMoney(cid, 50) ,
then change this to (doPlayerRemoveMoney(cid, 0)
Try using the ctrl + h shortcut, this will search for all the (doPlayerRemoveMoney(cid, 50) and you can imidiately change all of the found ones to (doPlayerRemoveMoney(cid, 0)
Hope this helped.

It dosn't work:(
When i say like "hi"
it respond ofc "where do you want to sail" or something like that..
then i say venore or something it just says "wanna go for 170 gold?"
then i say yes and it takes money from me..
so i don't sail free:(

help me!

- - - Updated - - -

well it's easier to just delete it.
Lua:
karmia = {x=453, y=481, z=6}
venore = {x=430, y=420, z=6}
desert = {x=400, y=482, z=6}
inferna = {x=518, y=439, z=6}
tiquanda = {x=568, y=465, z=7}
premia = {x=434, y=618, z=7}
liberty = {x=573, y=694, z=7}
folda = {x=266, y=317, z=6}
tortoise = {x=620, y=630, z=7}
dragonlandia = {x=660, y=846, z=6}

local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos, cid, item, frompos, item2, topos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Good bye then.')
focus = 0
talk_start = 0
end
end


function onCreatureTurn(creature)

end


function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end


function onCreatureSay(cid, type, msg)
msg = string.lower(msg)
if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
selfSay('Hiho ' .. getCreatureName(cid) .. '! Can I take you to karmia, venore, desert, inferna, dragonlandia, tiquanda, tortoise island, folda, premia e liberty bay. Pointing out that the travel\'s free!.')
focus = cid
talk_start = os.clock()

elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorry, ' .. getCreatureName(cid) .. '! I talk to you in a minute.')

elseif focus == cid then
talk_start = os.clock()

if msgcontains(msg, 'karmia') then
doTeleportThing(cid,karmia)
doSendMagicEffect(karmia,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'venore') then
doTeleportThing(cid,venore)
doSendMagicEffect(venore,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'desert') then
doTeleportThing(cid,desert)
doSendMagicEffect(desert,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'dragonlandia') then
doTeleportThing(cid,dragonlandiat)
doSendMagicEffect(dragonlandia,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'inferna') then
doTeleportThing(cid,inferna)
doSendMagicEffect(inferna,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'tiquanda') then
doTeleportThing(cid,tiquanda)
doSendMagicEffect(tiquanda,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'premia') then
doTeleportThing(cid,premia)
doSendMagicEffect(premia,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'liberty') then
doTeleportThing(cid,liberty)
doSendMagicEffect(liberty,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'folda') then
doTeleportThing(cid,folda)
doSendMagicEffect(folda,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'tortoise island') then
doTeleportThing(cid,tortoise)
doSendMagicEffect(tortoise,10)
selfSay("Let's GO")
focus = 0
talk_start = 0

elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
selfSay('Bye ' .. creatureGetName(cid) .. ', go back.')
focus = 0
talk_start = 0

elseif msg ~= "" then
selfSay('how? I do not understand!')
talk_state = 0
end
end
end

function onCreatureChangeOutfit(creature)
end

function onThink()
doNpcSetCreatureFocus(focus)
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next please!!...')
end
focus = 0
talk_start = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Good Bye')
focus = 0
talk_start = 0
end
end
end
Regards Anteyz
It dosn't work:(
When i say like "hi"
it respond ofc "where do you want to sail" or something like that..
then i say venore or something it just says "wanna go for 170 gold?"
then i say yes and it takes money from me..
so i don't sail free:(

help me!
 
Well if you copied the code it shouldn't take any money. Copy your Xml file of the npc and let me see it.
Regards Anteyz
 
Back
Top