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

Action GM Doll

Status
Not open for further replies.

LoLaye

Active Member
Joined
Dec 23, 2008
Messages
3,774
Solutions
1
Reaction score
44
Location
Sweden
Okay here is the newest GM Doll.....
its for the servers (8.31 - 8.40) that the gms cannot have the Green gm outfit.. i mean with that looktype 302..

Well save as gm.lua
Code:
local outfits = {302, 127, 193,
				 264, 276, 12}
local outfit =
	{
		lookType = 2,
		lookHead = 0,
		lookBody = 0,
		lookLegs = 0,
		lookFeet = 0,
		lookAddons = 0
	}
local outfit0 =
	{
		lookType = 2,
		lookHead = 0,
		lookBody = 0,
		lookLegs = 0,
		lookFeet = 0,
		lookAddons = 0
	}
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,1921) == -1 or getPlayerStorageValue(cid,1921) == #outfits then
setPlayerStorageValue(cid,1921,1)
doSetCreatureOutfit(cid, outfit0, -1)
else
for i=1,#outfits do
if getPlayerStorageValue(cid,1921) == i then
outfit.lookType = outfits[i]
doCreatureSay(cid, "I'm GM!", TALKTYPE_ORANGE_1)
doSetCreatureOutfit(cid, outfit, -1)
setPlayerStorageValue(cid,1921,i+1)
break
end
end
end
end

;) Done now in actions.xml

Code:
<action itemid="8982" script="tools/gm.lua"/>

:D okay done save this and please NOTE : If you want to use this doll you need to have acc type 10+
 
it gives the GM looktype 302 also green gm outfit..
 
Status
Not open for further replies.
Back
Top