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

2 scripts

ayla

New Member
Joined
Jul 8, 2009
Messages
71
Reaction score
0
Hello guys, Im very tired tryed to test some scripts and this isn't works....
i want 2 scrippts which they do the next things...

1.- Make tp in Thais temple and this one says "welcome to thais" and if you have pz, and pz locked, it says "you Have pz wait untill dessapear" and my item would be Golden Falcon.
2.- a Vip Scrolls this one i want to bring you, 1 vip day and automatically teleport you when it ran out, at Thais i guess is by Storege cuz i find a script whit this... "setPlayerStorageValue(cid,55555,2)" sooo could one help me :3? pleaseee
 
Teleport script...

Lua:
local thaispos = {x=1000, y=1000, z=7}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getCreatureCondition(cid, CONDITION_INFIGHT) then
		doPlayerSendCancel(cid, 'You can\'t teleport while in fight.')
	else
		doRemoveItem(item.uid)
		doTeleportThing(cid, thaispos)
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT)
		doCreatureSay(cid, 'You have teleported to your home temple.', TALKTYPE_ORANGE_1, false, cid)
	end
	return true
end

Globalevents

Lua:
<globalevent name="lala" interval="find out for one day" script="lala.lua"/>

Lua:
local thaispos = {x=1000, y=1000, z=7}
local storage = 5555

function onThink(cid, item, fromPosition, toPosition)

	for _, name in ipairs(getOnlinePlayers()) do
		local player = getPlayerByName(name)
		if getPlayerStorageValue(player,storage) == 1 then
			setPlayerStorageValue(player,storage,0)
			doTeleportThing(cid, thaispos)
		end
	end
end



actions vip scroll for one day

Lua:
local storage = 5555

function onUse(cid, item, fromPosition, itemEx, toPosition)

	if getPlayerStorageValue(cid,storage) < 1 then
		if getPlayerLevel(cid) > 1 then
			getPlayerStorageValue(cid, storage)
			doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED) 
			doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for 1 days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
			setPlayerStorageValue(cid, storage, (getPlayerStorageValue(cid,storage) + 1))
			doRemoveItem(item.uid, 1)
		else
			doPlayerSendCancel(cid,"You need to be at least level 2 to use this.")
			doRemoveItem(item.uid, 1)
		end
	else
		doPlayerSendCancel(cid,"You are already a donator.")
	end	
return TRUE
end
 
Last edited:
Your Teleport Falcon It Works "whit pz this isn't works" that's good, But... When I used It It Shows Me The Message ABout Go Temple, But Isn't Sent Me There. I've been do this....

<action itemid="8976" script="vip/tpf.lua"/>
in actions so, would be in GLOBALEVENTS?
 
Back
Top