• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Istnieje taki skrypt??

Aleh

Active Member
Joined
Jan 9, 2009
Messages
1,228
Reaction score
39
Location
Rzeszów
Witam,
istnieje taki skrypt jak /noob (teleportuje gracza z np. 50 lvl do depo) pod TFS 0.3.6pl1???
Za pomoc Rep;)
 
<talkaction words="!tp" event="script" value="noob.lua"/>

local config = {
exhaustionInSeconds = 420,
storage = 36531
}
function onSay(cid, words, param)
local player = getPlayerByName(param)
if(isPlayer(player) == TRUE) then
if(exhaustion.check(cid, config.storage) == TRUE) then
doPlayerSendCancel(cid, "You can teleport players only 1 time per " .. config.exhaustionInSeconds .. " seconds.")
return TRUE
end
if (getPlayerLevel(cid) > 50) then
if (getPlayerLevel(player) <= 50) then
if(doPlayerAddSoul(cid, -50) == TRUE) then
exhaustion.set(cid, config.storage, config.exhaustionInSeconds)
doTeleportThing(player, getTownTemplePosition(getPlayerTown(player)))
else
doPlayerSendCancel(cid,"You dont have 50 soul points.")
end
else
doPlayerSendCancel(cid,"This player have lvl higher than 50.")
end
else
doPlayerSendCancel(cid,"Your level is too low.")
end
else
doPlayerSendCancel(cid,"This players doesn exist, or is offline.")
end
return TRUE
end

gdzie ustawic lvl, soul potrzebny, exhausted i storage to wyraznie widac
 
Code:
function onSay(cid, words, param, channel)
	local toPos = getCreatureLookPosition(cid)

	if getPlayerSoul(cid) < 20 then 
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[Teleport Noob] Nie masz 20 Souli.')
		return true
	end
	
	toPos.stackpos = STACKPOS_TOP_CREATURE
	local tmp = getThingFromPos(toPos)
	local noob = 0
	
	if getTileInfo(toPos).protection then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[Teleport Noob] Nie mozesz uzyc komendy na graczu w PZ.')
		return true
	end
	
	if(tmp.uid ~= 0) then
		if(isPlayer(tmp.uid)) then
			noob = tmp.uid
		else
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[Teleport Noob] Komende mozna uzyc tylko na graczu z pozimem nizszym niz 50.')
		return true
		end
	end

	if noob ~= 0 then
		if getPlayerLevel(cid) >= 50 then
			if getPlayerLevel(noob) < 50 then
				doPlayerAddSoul(cid,-100)
				doTeleportThing(noob,getTownTemplePosition(getPlayerTown(noob)))
				doSendMagicEffect(toPos, CONST_ME_MAGIC_RED)
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[Teleport Noob] Gracza przeteleportowano.')
				return true
			else
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[Teleport Noob] Gracz ma poziom wyzszy od 50.')
			end
		else
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[Teleport Noob] Nie masz 50 poziomu.')
		end
	else
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '[Teleport Noob] Komende mozna uzyc tylko na graczu z poziomem nizszym niz 50.')
	end

	doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
	return true
end
...
 
@up
Code:
21:56 [Teleport Noob] Komende mozna uzyc tylko na graczu z poziomem nizszym niz 50.
Gracz:
Code:
21:55 You see Ziopsm (Level 8). He is a sorcerer.
hmm?:>
 
Sherlok ty jestes taki zakręcony jak te baranie rogi z avatara czy udajesz? Wiecznie jakies durnoty piszesz ^^
 
Bo ten dzieciak ma nie wyparzoną Ryj :) ...
Tyle na twój teamt :)
Nie wiem ile masz lat nie interesuje mnie to :) i nie obchodzi mnie to .
Pozdrawaim cię Sherlok
 
Bo ten dzieciak ma nie wyparzoną Ryj :) ...
Tyle na twój teamt :)
Nie wiem ile masz lat nie interesuje mnie to :) i nie obchodzi mnie to .
Pozdrawaim cię Sherlok

A mnie nie interesuje Twoje zdanie.
Nie pozdrawiam cię Texon
 
Nie potrafisz pisać, nie pisz, proszę.
Zrobiłem, jeden błąd i to mały i to znaczy, że nie potrafie pisać .
Dzięki za spostrzegawczość REP dla ciebie
A mnie nie interesuje Twoje zdanie.
Nie pozdrawiam cię Texon
Chojrak do ciebie to było, nie .
Ty jesteś SpOoOko :)
Pozdrawiam Was :)
Texxio :)
 
Back
Top