GA

Vocação,determinada Outfit.

Por Gankigner, 05 de mai. de 2012 em Scripts

7
1.8k
GankignerG
05 de maio de 2012 às 19:23

Cada vocação tem uma determinada outfit, nao pode mudar!

Espero por resultados,to fazendo um ot revolucionario,

Servidor 8.54 !

Obrigado pela atenção!

ValentineV
05 de maio de 2012 às 23:28

Isso pode ser feito da seguinte maneira, abra a pasta \data\XML e depois o arquivo outfits.xml.

Deve ficar algo do tipo:

 

<?xml version="1.0"?>
<outfits>
   <outfit id="1">
		    <list gender="1" lookType="45" name="Knight"/>
		    <list gender="0" lookType="46" name="Knight"/>
    </outfit>
</outfits>

 

Um é o Female e outro Male. Então no lookType coloque o número do outfit e no name o nome da vocation que usa este outfit.

DantarrixD
06 de maio de 2012 às 00:15

@up: But they will still can change outfit...

 

What he needs is a script, specific, a creatureevent, onOutfit(cid, old, current), that returns false when you change outfit to one that is not for your vocation...

VodkartV
06 de maio de 2012 às 12:02

@up: But they will still can change outfit...

 

What he needs is a script, specific, a creatureevent, onOutfit(cid, old, current), that returns false when you change outfit to one that is not for your vocation...

it's true, never thought of that...

xd

DantarrixD
06 de maio de 2012 às 12:25

@up: I did it a time ago for amiroslo.... Maybe you know him (he's from OTLand...)..... But I dit it on sync and I didnt save it.... So I lose the script... :S

 

LOL! I found the sync, so here is the script:

 

local vocs = {1, 2, 3, 4, 6, 7}
function onOutfit(cid, old, current)
   if isInArray(vocs, getPlayerVocation(cid)) then
				    doPlayerSendCancel(cid, "You cannot change your outfit.")
				    return false
   end
return true
end

 

Its a creaturescript.....

In local vocs, you need to write what vocations cant change outfits...

GankignerG
06 de maio de 2012 às 14:13

Obrigado pela atenção ! Rep + ae ..

DantarrixD
06 de maio de 2012 às 14:35

Dont worry... And sorry for not talking portuguese.... Im trying to learn it a bit....

 

And Thank you for rep+... But Im not searching to have rep, Im wanting to find kind people... And I think here is the best place to make some friends... :p