Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Creaturescript]Make Vocation ID 1-8 Group ID X

Experienced Elementalist
Joined
Jul 29, 2012
Messages
240
Reaction score
25
Someone said that he need help with Makeing Vocation ID 1-8 Group ID X

This works on 0.3.6pl1 and 0.4 for sure
PS: NOT TESTED

goto ur creaturescript and add
GM.lua
Code:
--Script by Amiroslo
function onLogin(cid)

local youv = getPlayerVocation(cid)

    if youv == 1 or youv == 2 or youv == 3 or youv == 4 or youv == 5 or youv == 6 or youv == 7 or youv == 8 then
        doPlayerSetGroupId(cid, 4)
        doPlayerSendTextMessage(cid,15,'You are a GM!')
	else
	    doPlayerSendTextMessage(cid,15,'You cant be a GM!')
	end
	return TRUE
end

and in ur creaturescript.xml
Code:
	<event type="login" name="GM" event="script" value="GM.lua"/>

and in ur login.lua
Code:
		registerCreatureEvent(cid, "GM")

I dont think it helps or so, but why not making it? :p

Rep++ If it helped!
 
Back
Top