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

[Script] Podloga Pacc

Slepy

New Member
Joined
May 14, 2009
Messages
111
Reaction score
1
potrzebuje scriptu na podloge dla pacc czyli jesli masz pacc mozesz przejsc jesli nie masz to daje tekst you need premium account i cofa cie o jedna kratke
 
Proszę.

PHP:
function onStepIn(cid, item, pos) 

if getPlayerLookDir(cid) == 0 then
newdir = 2
elseif getPlayerLookDir(cid) == 1 then
newdir = 3
elseif getPlayerLookDir(cid) == 2 then
newdir = 0
else
newdir = 1
end

if isPlayer(cid) == TRUE then
   if isPremium(cid) == TRUE then
   else
   doMoveCreature(cid, newdir)
   doPlayerSendTextMessage(cid,24, "you need premium account.")
   end
end
end

Dosyć stary skrypt ale powinien działać.
 
newdir to znaczy?

to jest dla kazdej z profesji tylko zeby byl pacc tak?
 
Lua:
function onStepIn(cid, item, position, fromPosition)
	if (not isPremium(cid) then
		doTeleportThing(cid, fromPosition) -- a moze return false by wystarczylo
	end
	return true
end
 
Lua:
function onStepIn(cid, item, position, fromPosition)
	if (not isPremium(cid) then
		doTeleportThing(cid, fromPosition) -- a moze return false by wystarczylo
	end
	return true
end

noob
Lua:
function onStepIn(cid, item, position, fromPosition)
        if (not isPremium(cid) then
                doTeleportThing(cid, fromPosition, true) -- a moze umyj mi plecy
        end
        return true
end
 
samo step in wystarczy? Piotrek to napewno bedzie dobrze?
 
Back
Top