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

Very hard scripts who up for the challenge?

zoky12

New Member
Joined
Jul 4, 2008
Messages
60
Reaction score
0
I need a script where. if someone dies they have to change to respawn in 3 differnt areas. like if a player dies he either goes to venore, thais .or carlin. WHOS UP FOR THE CHALLENGE I BET MY LIFE U CANT DO IT.
 
creaturectripts/dea.lua

Lua:
function onDeath(cid, corpse)
     doPlayerSetStorageValue(cid, 36901, 1)
    return TRUE
end

creaturectripts/login.lua. Add there after 1st Line (onLogin)

Lua:
    if getPlayerStorageValue(cid, 36901) == 1 then
	local swiatynie = {
		{x=,y=,z=},
		{x=,z=,z=},
		{x=,y=,z=}
	}
	doTeleportThing(cid, swiatynie[math.random(1, #swiatynie)])
        setPlayerStorageValue(cid, 36901, 0)
    end
	registerCreatureEvent(cid, "Die")

In creaturescripts.xml:

PHP:
	<event type="death" name="Die" event="script" value="dea.lua"/>

Now give me ur live u pervy bitch! Xd
 
Back
Top