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

Make 2 races Orc and Human.

Beo

Three Magic
Joined
Aug 25, 2009
Messages
9,059
Solutions
1
Reaction score
846
How could I make 2 races in my Otserv, one Orc and the other Human?

I currently have ingame account manager, though I can probably use a website.
 
Explain to me how you want it, you want to have 2 new vocations, you do that by editing vocations XML.

You could make an NPC like the king promote you with this new vocation.

Then you could use a script like this one:

Lua:
function onOutfit(cid, old, current)
	if getPlayerStorageValue == 1596 then -- Storage Orc Outfit
		doPlayerAddOutfitId(cid, 5, 0) -- Orc Outfit, 0 addons
		setPlayerStorageValue == 1596 + 1
	elseif getPlayerStorageValue == 2000 -- Storage Human Outfit
		doPlayerAddOutfitId(cid, 133, 3) --Human Outfit, 3 addons
		setPlayerStorageValue == 2000 + 1
	else
	end
end

My whole thought with this script is that you make an NPC that gives the player these storages and they will automaticly gain an outfit, and you must also make a cancel message for the NPC if they have these storages.

For example:
King: Do you want to be promoted
Player: yes
King: What do you want to become, an orc or a human race

now if the player replies ELF, he gains the storage 2000, else if he replies Orc he gets the storage 1596.
It was the simplest I could think of for now :(
 
Last edited:
Back
Top