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

setCreatureMagLevel(cid, 1)

Lava Titan

Developer
Joined
Jul 25, 2009
Messages
1,529
Solutions
1
Reaction score
85
Location
Portugal
Lua:
function onUse(cid, item, frompos, item2, topos)
  if getPlayerLevel(cid) > 1 then
     doPlayerAddLevel(cid,-800000)
	 doCreatureAddHealth(cid,-(getCreatureHealth(cid))+150)
	 setCreatureMaxHealth(cid,150)
	 doCreatureAddMana(cid,-(getCreatureMana(cid)))
	 setCreatureMaxMana(cid,0)
	 doCreatureSay(cid, "You are now level: ".. getPlayerLevel(cid) .."!!!" ,19)
	 doSendMagicEffect(getPlayerPosition(cid), 40)
	 
	 
  end
end

I need help becuz idk where to add:

Lua:
	 setCreatureMagLevel(cid, 1)

This script will turn a player into level 1 , health into 150, mana into 0 and i wanted it to turn player magic level 1
can any1 help me fixing?

Regards
Lava Titan!
 
Last edited:
Check this out

Lua:
  if getPlayerLevel(cid) > 1 then
     doPlayerAddLevel(cid,-800000)

That means that if the player reaches level 1 he will get deleveled by 800000 levels :p

Might wanna check that out.
 
Check this out

Lua:
  if getPlayerLevel(cid) > 1 then
     doPlayerAddLevel(cid,-800000)

That means that if the player reaches level 1 he will get deleveled by 800000 levels :p

Might wanna check that out.


you cant get lower than level 1
 
Back
Top