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

Simple CreatureScript

LeOnArd0

Member
Joined
Jan 24, 2010
Messages
76
Reaction score
14
Hey guys, okay?

I need a script that would work like this:

The player reaches level 717 000, to reach this level, it does not get more xp (SET IN STAGES) that there is only that enter the script.

When the players reach level 717 000, he would receive a message saying "Go back to the temple and reset", just like that every time he killed a monster he again received the message "Go back to the temple and reset."

I tried using a script that a friend did, but it did not work.

Code:
function onKill(cid, target)


if getPlayerLevel(cid) == 717000 and isMonster(target) then
doPlayerSendTextMessage(cid, 27, "Vá para o templo e de !reset")
end
return true
end

Code:
<event type="kill" name="maxlevel" event="script" value="maxlevel.lua"/>

Needs nothing Storage because it will get him many times.

Could someone help me?

Thanks guys.
 
Okay, I just found a mistake! If I kill a monster that gives a high amount of XP and I get more than 717000 level, it does not send the message when kill a monster. Can adapt to any level after 717000 mensgem he send?

+REP!
 
Code:
function onKill(cid, target)
if getPlayerLevel(cid) >= 717000 and isMonster(target) then
doPlayerSendTextMessage(cid, 27, "Vá para o templo e de !reset")
end
return true
end
 
Back
Top