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
and in ur creaturescript.xml
and in ur login.lua
I dont think it helps or so, but why not making it?
Rep++ If it helped!
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?
Rep++ If it helped!