brendan2
Sensation black
- Joined
- Feb 19, 2009
- Messages
- 507
- Reaction score
- 1
Ok need help adding a script to this one that makes it so orc's cant kill orcs like players who look like orcs but they can kill humans ....
PHP:
local townid = 1 -- the id of the town(check it in your map editor
local town = "black" -- Name of town
local vocation = 1 -- druid(2) ,sorcerer(1),knight(4),paladin(3)
local tppos = {x=502,y=498,z=7} -- pos where player will be tped to
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(cid) == TRUE then
doCreatureChangeOutfit(cid, {lookType = 5, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0})
doPlayerSetTown(cid, townid)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Yor are now a citizen in "..town.." Town.")
doPlayerSetVocation(cid,vocation)
doTeleportThing(cid,tppos)
end
return TRUE
end