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

When A Object By A Premmy Player Is Used It Teleports The Player To X Postion?

Prince Of Light

New Member
Joined
Jan 3, 2010
Messages
10
Reaction score
0
When A Object Is Used By A Premmy Player It Teleports The Player To X Postion...
Why Dosent This Script Work?

actions\Action.XML :

Code:
<action actionid="2002" event="script" value="quests/pacctp.lua"/>

actions\scripts\quests\pacctp.lua :

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local newPos = {x=1019, y=860, z=7, stackpos = 1}

	if item.aid == 2002 then
	if isPremium(cid) == true then
	
		doTeleportThing(cid, newPos)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
		
	elseif isPremium(cid) == false then
	
		doPlayerSendTextMessage(0, cid, 22, 'You Must Be Premmium To Use This Object!') 
		
	end
	end
	
	return true
end
 
Ok I did that and then tryed removing if item.aid == 2002 then and its end instead and it worked.
Odd becuse it wasent working befor I added that.

Thanks for your help ^^
 
Back
Top