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

square soul points loop

TriamerA

The Mystic One.
Joined
Nov 16, 2008
Messages
1,257
Reaction score
18
Location
Poland
hello I have script which is removing 1 soul point from a player after 1 minute if he will enter at special sqm, and I want to remove 1 soul points after entering until he will leave that square.
Code:
function onStepIn(cid, item, pos)



    if item.actionid == 17199 then
	if getPlayerSoul(cid) > 5  then
        addEvent(doPlayerAddSoul, 60 * 1000, cid, -1) 
else
		doPlayerSendTextMessage(cid,22, "You don't have enought soul points.")
          doTeleportThing(cid, {x = 1071, y = 1084, z = 7}) 
end
end

    return TRUE
end

But after player enter on that sqm it only happens once, and I want it to remove soul points until player is at that sqm
 
Back
Top