• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Gm Potion

simson361

The Grim Reaper
Joined
Aug 4, 2010
Messages
626
Reaction score
27
Location
sweden
Hey, was wondering if anyone knows how to make a "GM Potion" for example, when you right click on it, you eather eat, drink or it disapers and it gives you GM (/attr group 4) Like this V ^^
ciNECn.png
 
Put this on action:

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    setPlayerGroupId(cid, 4)
    doCreatureSay(cid, "You are a GOD now!!!" ,19)
    return doRemoveItem(item.uid)
end
 
simson make godpotion.lua
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    setPlayerGroupId(cid, 4)
    doCreatureSay(cid, "You are a GOD now!!!" ,19)
    return doRemoveItem(item.uid)
end
then do this in actions.xml
Code:
<action itemid="xxxx" script="godpotion.lua"/>

change the x's to your potion item id
 

Similar threads

Back
Top