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

Anty noob

Status
Not open for further replies.

Drassil

Banned User
Joined
Nov 3, 2009
Messages
60
Reaction score
0
LUA:
function onSay(cid, words, param)
	local player = getPlayerByName(param)
	if(param == '') then
		doPlayerSendCancel(cid, "Command requires param.")
		return true
	end
	
	if(not isPlayer(player)) then
		doPlayerSendCancel(cid, "This players is offline, or doesn't exist.")
		return true
	end
	
	if(getPlayerLevel(player) >= 50) then
		doPlayerSendCancel(cid, "This player have lvl higher than 50.")
		return true
	end
	
	if(getPlayerLevel(cid) < 50) then
		doPlayerSendCancel(cid, "Your level is too low to teleport other players.")
		return true
	end
	
	if(getPlayerSoul(cid) < 100) then
		doPlayerSendCancel(cid, "You don't have 100 soul points.")
		return true
	end
	
	if(getTilePzInfo(getPlayerPosition(player))) then
		doPlayerSendCancel(cid, "You can't teleport this player because he is in PZ zone.")
		return true
	end
	
	if(exhaustion.check(cid, 36532)) then
		doPlayerSendCancel(cid, "You can teleport players only one time per 440 seconds.")
		return true
	end
	
	exhaustion.set(cid, 36532, 440)
	doTeleportThing(player, getTownTemplePosition(getPlayerTown(player)))
	doPlayerSendTextMessage(player, 22, "You have been teleported to temple by ".. getPlayerName(cid) ..".")
	doPlayerSendTextMessage(cid, 22, "You succesfully teleported ".. getPlayerName(player) .." to temple.")
	doPlayerAddSoul(cid, -100)
	return true
end

moj stary nabski skrypt na noobkuf
 
[15/11/2009 21:51:27] Lua Script Error: [TalkAction Interface]
[15/11/2009 21:51:27] data/talkactions/scripts/tp.lua:onSay

[15/11/2009 21:51:27] data/talkactions/scripts/tp.lua:33: attempt to index global 'exhaustion' (a nil value)
[15/11/2009 21:51:27] stack traceback:
[15/11/2009 21:51:27] data/talkactions/scripts/tp.lua:33: in function <data/talkactions/scripts/tp.lua:1>

Same bledy.
 
Dziwne... jak miałem jeszcze ots'a to dodałem ten skrypt do tfs 0.3.4pl2 i działał bez problemu. moze zle dodales linijkę do talkactions? (w co wątpie);]
 
Podlinkować ~= wyjebać.

'Podlinkować' ne 'wyjebać' ;<

Drassilu, idź na Tibia.net.pl albo zacznij używać magicznego urządzenia od samego Boga, bo za następny temat i takie zachowanie dostajesz bana. Nikt NIC za Ciebie tutaj nie będzie robił. Raz można, drugi też, ale jeżeli ktoś myśli, że będzie nieustannie żerować na innych, to się MYLI. Nic się nie nauczyłeś, Twoja sprawa.
 
Status
Not open for further replies.
Back
Top