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

NEED TELEPORT SCRIPT, rep++

chauffaille

New Member
Joined
Sep 10, 2009
Messages
198
Reaction score
1
hiho

I need a script that when a player goes into a teleport he wins the addon of the citizen (citizen full)

give rep + +; D

:thumbup:
 
Add this in movements.xml (the "0000" is the id of item the player should walk on!)

PHP:
<movevent event="StepIn" itemid="0000" script="teleport.lua"/>

put this as "teleport.lua" in movements/scripts/
the "000" should be a unid you MUST put on the item the player should walker on!
PHP:
--Rep for RealSoft--
function onStepIn(cid, item, frompos, item2, topos)
	if item.uid== 000 then --Uid of title/item
		newpos = {x=32320, y=32176, z=9}
		doPlayerSendTextMessage(cid,22,"You have gain full citizen!")
		doTeleportThing(cid,newpos)
		doSendMagicEffect(newpos,12)
			if getPlayerSex(cid) == 0 then
		    doPlayerAddAddon(cid, 136, 1)
					    doPlayerAddAddon(cid, 136, 2)
		    setPlayerStorageValue(cid,8000,2)
			else
			doPlayerAddAddon(cid, 128, 1)
						doPlayerAddAddon(cid, 128, 2)
		    talk_state = 1
			end

		return 1
	end
end
 
Back
Top