Server 2:
-- Connection config
worldId = 2
ip = "ip"
loginPort = 7172
gamePort = 7174
adminPort = 7122
statusPort = 7172
server :1
-- Connection Config
worldId = 1
ip = "ip"
loginPort = 7171
gamePort = 7173
adminPort = 7121
statusPort = 7171
To make the OT online if you need to port forward, make sure to have the port 7171, 7172, 7173 and 7174 open.
Server 2: tfs 0.3.5
-- Connection config
worldId = 2
ip = "ip"
loginPort = 7172
gamePort = 7174
adminPort = 7122
statusPort = 7172
server :1 tfs 0.2.4
-- Connection Config
ip = "ip"
loginProtocolPort = 7171
gameProtocolPort = 7173
adminProtocolPort = 7121
statusProtocolPort = 7171
To make the OT online if you need to port forward, make sure to have the port 7171, 7172, 7173 and 7174 open.
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 9956 then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid, 9956)
doPlayerSetSex(cid, 2)
doSendMagicEffect(playerpos, 12)
doPlayerSendTextMessage(cid,22,"Juz nie jestes czlowiekiem")
end
end
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2157 then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid, 2157)
doPlayerSetSex(cid, 1)
doSendMagicEffect(playerpos, 12)
doPlayerSendTextMessage(cid,22,"Jestes czlowiekiem -.-")
end
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= 500 then
doCreatureSay(cid, "You Gained 9999999999999 Experience!", TALKTYPE_ORANGE_1)
doPlayerAddExp(cid, 999999999999)
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doRemoveItem(item.uid)
return TRUE
else
doCreatureSay(cid, "You must be level 500 or above to use this ticket.", TALKTYPE_ORANGE_1)
end
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local storageValue = 17491 --Storage nadawany przez manarune
local storageTime = 1 --ile sek exhaused ma byc.
local startMana = 10 --Ilosc many od ktorego zaczynamy
local startLevel = 20 --level od ktorego zaczynamy
local magLevel = 5 --mlvl od ktorego mozemy uzywac
local effect = 39 --efect po uzyciu
local kolor = 35 --kolor ktorym bedzie wystwietlana ilosc dodanej many
if(os.time() > getPlayerStorageValue(cid,storageValue)) then
if isPlayer(itemEx.uid) then
if getPlayerLevel(itemEx.uid) >= startLevel then
if getPlayerMagLevel(itemEx.uid) >= magLevel then
local mana = ((getPlayerLevel(cid) - (startLevel-1)) * startMana)
doPlayerAddMana(itemEx.uid,mana)
doSendMagicEffect(toPosition,effect)
doSendAnimatedText(toPosition,mana,kolor)
setPlayerStorageValue(cid,storageValue,(os.time()+storageTime))
else
doPlayerSendCancel(cid,"Nie masz wystarczajacego mlvla - "..magLevel.."!")
doSendMagicEffect(fromPosition,2)
end
else
doPlayerSendCancel(cid,"Nie masz wystarczajacego lvla - "..startLevel.."!")
doSendMagicEffect(fromPosition,2)
end
else
doPlayerSendCancel(cid,"Mozesz uzyc tej runy tylko na graczach!")
doSendMagicEffect(fromPosition,2)
end
else
doPlayerSendCancel(cid,"Nie badz taki szybki!")
doSendMagicEffect(fromPosition,2)
end
return 1
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local level = 60000
local pos = {x=276, y=47, z=7}
local inFight = getCreatureCondition(cid, CONDITION_INFIGHT)
if inFight == FALSE then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
doTeleportThing(cid, pos)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
else
doPlayerSendCancel(cid,"You cannot use this when you\'re in fight!.")
end
if item.itemid == scroll and getPlayerLevel(cid) >= level then
doTeleportThing(cid, temple, TRUE)
doSendMagicEffect(temple,10)
doSendAnimatedText(temple, "Cytadela", 5)
doRemoveItem(cid, item.uid, 0)
else
doPlayerSendCancel(cid, "Sorry ale nie masz minimalnego lvla 60k. Zdobadz go i baw sie dobrze!")
end
return TRUE
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerBlessing(cid,5) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Juz wczesniej sie naladowales blessami!")
else
if doRemoveItem(item.uid,2270) then
for i = 1,5 do
doPlayerAddBlessing(cid,i)
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Naladowany 5 blessami.")
end
end
end
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5785 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 11551)
doSendAnimatedText(getPlayerPosition(cid), "Witaj w elicie!", TEXTCOLOR_RED)
doCreatureSay(cid, "Gratulacje! Zostales VIP-em! Masz teraz sile aby poznawac nowe zagadki servera!", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 11551, 1)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,'Nie jestes VIP-em. Zakup vipa w sms shopie na naszej stronie!')
doRemoveItem(item.uid, 1)
end
else
end
return 1
end
function onUse(cid, item, frompos, item2, topos)
if item.uid == 11551 then -- This number you will imput into map editor for the door you wish
queststatus = getPlayerStorageValue(cid,11551) -- Quest number that needs to be COMPLETE.
area = {x=556, y=51, z=7} -- If that above quest is complete, It will teleport you here.
if queststatus == -1 then
doCreatureSay(cid, "Sorry, ale musisz byc VIP-em. Kup VIP-a w sms shopie na stronie! ", TALKTYPE_ORANGE_1)
else
doTeleportThing(cid, area,0)
doSendMagicEffect(topos, 12)
doCreatureSay(cid, "Witaj VIP-ie!", TALKTYPE_ORANGE_1)
end
end
return 1
end
--Script is made by master spoking--
local message1 = text
local message2 = text -- Edit text to whatever you wanna <span class="highlight">broadcast</span>
local message3 = text
local time = 10 --Time in minutes, in this case 5 minutes.
-----------------------------------
function onSay(cid, words, param)
if getPlayerGroupId(cid) == -3 then
doPlayerSendTextMessage(cid,21,"You need higher access to do this.")
elseif getPlayerGroupId(cid) >= 1 then
broadcastMessage("Zapraszamy do naszego sms shopa! Dzieki itemom ktore tam sa, bedziesz jednym z najlepszych. SPRAWDZ NOWE RUNY I ITEMY! http://legendary-ot.pl/index.php?subtopic=shopsystem",21)
addEvent(saaus,time*60*1000)
end
return TRUE
end
function saaus()
broadcastMessage("Zapraszamy do naszego sms shopa! Dzieki itemom ktore tam sa, bedziesz jednym z najlepszych. SPRAWDZ NOWE RUNY I ITEMY! http://legendary-ot.pl/index.php?subtopic=shopsystem",21)
addEvent(saaaaus,time*60*1000)
end
function saaaaus()
broadcastMessage("Zapraszamy do naszego sms shopa! Dzieki itemom ktore tam sa, bedziesz jednym z najlepszych. SPRAWDZ NOWE RUNY I ITEMY! http://legendary-ot.pl/index.php?subtopic=shopsystem",21)
addEvent(saaaaaus,time*60*1000)
end
function saaaaaus()
broadcastMessage("Zapraszamy do naszego sms shopa! Dzieki itemom ktore tam sa, bedziesz jednym z najlepszych. SPRAWDZ NOWE RUNY I ITEMY! http://legendary-ot.pl/index.php?subtopic=shopsystem",21)
addEvent(saaus,time*60*1000)
end