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

I need one script

Monomalo00

http://leiends.ml/
Joined
Nov 13, 2010
Messages
120
Solutions
1
Reaction score
4
I need script, you do not lose anything When you die (bp,set ect..) , forever, & other for teleport to other's temples example: !t 1, !t 2 ect..
Thanks You.
 
Infinite Bless:
Add this to your login.lua script in: data/creaturescripts/scripts/login.lua
Lua:
local t = {1, 2, 3, 4, 5}
if not getPlayerBlessing(cid, 5) then
	for i = 1, table.maxn(t) do
		doPlayerAddBlessing(cid, t[i])
	end
end

You wanna need script teleport otherS? example low levels trap and players can tp to temple?
 
Only teleport for go to others temples

Example::
8 Temples >> (only can use in pz)
!t 1 (Kazzoordon)
!t 2 (Ab'dendriel)
!t 3 (Ankrahmun)
!t 4 (Svargrond)
!t 5 (Elf City)
!t 6 (Forest)
!t 7 (Venore)
!t 8 (Trainers Monks)

I have that becouse dont work.
Lua:
local cash = 0 -- u can modify the prize (actual 1cc)
local cdtele = 900 -- the seconds of cooldown (900=15min)
local etele = 9499 -- isn't necessary to change
 
local config = {
premium = false, -- if is needed be premium to use this teleport (true or false)
battle = false -- if is needed be without battle to use (true or false)
}
 
local places = {
[1] = {name = "Kazzoordon", id = 1},
[2] = {name = "Ab'dendriel", id = 2},
[3] = {name = "Ankrahmun", id = 3},
[4] = {name = "Svargrond", id = 4},
[5] = {name = "Elf City", id = 5},
[6] = {name = "Forest", id = 6},
[7] = {name = "Venore", id = 7},
[8] = {name = "Trainers", id = 8},
}

Lua:
<talkaction words="!tp" event="script" value="tpAllCitys.lua"/>
Lua:
 [13/8/2013 19:37:56] [Warning - Event::loadScript] Event onSay not found (data/talkactions/scripts/tpAllCitys.lua)
This error is in console.

- - - Updated - - -

bump
 
chnged for
Lua:
local cash = 0 -- u can modify the prize (actual 1cc)
local cdtele = 900 -- the seconds of cooldown (900=15min)
local etele = 9499 -- isn't necessary to change
 
local config = {
premium = false, -- if is needed be premium to use this teleport (true or false)
battle = true -- if is needed be without battle to use (true or false)
}
 
local places = {
[1] = {name = "Kazzoordon", id = 1},
[2] = {name = "Ab'dendriel", id = 2},
[3] = {name = "Ankrahmun", id = 3},
[4] = {name = "Svargrond", id = 4},
[5] = {name = "Elf City", id = 5},
[6] = {name = "Forest", id = 6},
[7] = {name = "Venore", id = 7},
[8] = {name = "Trainers", id = 8},
}
 
function onSay(cid, words, param)
 
 
	if exhaustion.get(cid, etele) and exhaustion.get(cid, etele) > 0 then
	tempo = (exhaustion.get(cid, etele)) / 60
	min = math.floor(tempo)
doPlayerSendTextMessage(cid,27,"You have to wait more "..min.." minutes.")
	return true
	end
 
	if config.battle and getCreatureCondition(cid, CONDITION_INFIGHT) then
doPlayerSendTextMessage(cid,27,"You can't teleport with fight.")
	return true
	end
 
	if (param == '') then
		local str = ""
		str = str .. "Existent places: \n\nHouse\n"
			for a = 1, #places do
				str = str..""..places[a].name.."\n"
			end
		doShowTextDialog(cid, 2333, str)
	return true
	end
 
	local lastppos = getThingPos(cid)
	local telepos = {}
	local myplace = ""
	local townid = 0
 
	if string.lower(param) == "house" then
 
		if not getHouseByPlayerGUID(getPlayerGUID(cid)) then
			doPlayerSendTextMessage(cid,27, "You don't own a house.")
	doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
		return true
		end
 
		telepos = getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid)))
		myplace = "house"
           effect = CONST_ME_TELEPORT
 
	else
effect = CONST_ME_TELEPORT
 
		for x = 1, #places do
			if string.find(string.lower(places[x].name), string.lower(param)) then
				townid = places[x].id
				myplace = places[x].name
			end
		end
 
		if myplace == "" then
doPlayerSendTextMessage(cid,27,"Sorry, this place don't exist.")
	doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
		return true
		end
 
	end
 
	if myplace ~= "" and townid > 0 then
		telepos = getTownTemplePosition(townid)
	end
 
if doPlayerRemoveMoney(cid, cash) == TRUE then
 
	doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
 
	doTeleportThing(cid, telepos, false)
 
	local pos2 = getClosestFreeTile(cid, getPosByDir(getThingPos(cid), SOUTH))
 
	doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
 
	doCreatureSay(cid, "Teleport to "..myplace.."!", TALKTYPE_MONSTER)
doPlayerSendTextMessage(cid,27,"You have teleported to "..myplace.." for "..cash.." gps!")
doPlayerSendTextMessage(cid,27,"To use again wait "..cdtele.." seconds.")
 
	doCreatureSetLookDir(cid, SOUTH)
 
	exhaustion.set(cid, etele, cdtele)
 
else
doPlayerSendTextMessage(cid,27,"You haven't enough money ("..cash.." gps)!")
	doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
end
 
return true
end
 
Back
Top