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

Request:Vocation whit permanent black skull. Posible?

darkk

New Member
Joined
May 1, 2009
Messages
15
Reaction score
0
Location
Las Vegas, US
It is posible?

Just 1 vocation with permanent black skull.

What a mean is, example: I have the normal vocations

Sorcerer, MS, Druid, ED, etc...
And a new vocation, i want that vocation will always
have black skull. Can it be posible,?


Thanks, :)
 
Last edited:
I didn't test it but it should work.

Create file skull.lua in data/creaturescripts/scripts/
Code:
function onLogin(cid)
local playerVoc = getPlayerVocation(cid)
    
      if playerVoc == 9 then
	

            doCreatureSetSkullType(cid, SKULL_BLACK)
          	end

	return true
end

Add this to creaturescripts.xml in /data/creaturescripts/
Code:
<event type="login" name="skull" event="script" value="skull.lua"/>

Add this to login.lua in data/creaturescripts/scripts/

Code:
	registerCreatureEvent(cid, "skull")

I tested it for 0.3.6pl1 and it works.
 
Last edited:
I guess that boniek02's script works, but, you don't can forget to change:
Code:
      if playerVoc == 9 then

To the ID of your vocation :)
 
Back
Top