Ai galera venho aki emplorar kk
preciso muito saber se é possivel e se possivel me ajudar postando o script!
agradeço desde ja!
VALENDO REP+++
Ai galera venho aki emplorar kk
preciso muito saber se é possivel e se possivel me ajudar postando o script!
agradeço desde ja!
VALENDO REP+++
Habilidades :
Scripter = Bom
Mapper = Ótimo
Spriter = Bom
Programer = Ruim
Projetos\Topicos :
Att. JokerMind Renan =)
Acho que você pode encontrar o que está procurando nesse link: http://www.xtibia.com/forum/topic/167172-two-weapons-system/page__fromsearch__1
Vlw, espero ter ajudado.
@leoxtibia sera que nao tem como colocar esse sistema em 1 vocaçao só?
Habilidades :
Scripter = Bom
Mapper = Ótimo
Spriter = Bom
Programer = Ruim
Projetos\Topicos :
Att. JokerMind Renan =)
sim se tu instala ele da pra fase um script que so a uma voc possa usar duas armas.
^w^
sim se tu instala ele da pra fase um script que so a uma voc possa usar duas armas.
Sabe fazer esse script?
Habilidades :
Scripter = Bom
Mapper = Ótimo
Spriter = Bom
Programer = Ruim
Projetos\Topicos :
Att. JokerMind Renan =)
sim mas tu ja coloco codigo de duas armas?vc tem as sourcers do seu server?(se n tive nem adianta eu fase que n vai da pra por o codigo pra duas armas)
^w^
Ja sim brother !!! pode passar ae blw! rep+ pra ti se der certo
Habilidades :
Scripter = Bom
Mapper = Ótimo
Spriter = Bom
Programer = Ruim
Projetos\Topicos :
Att. JokerMind Renan =)
va na pasta creaturescripts/script crie um arquivo lua com nome twoweapons e cole isso dentro dele
vocs = {4,8} --id das vocs que podem usar duas armas function onThink(cid, interval) item,item2 = getPlayerSlotItem(cid, 5),getPlayerSlotItem(cid, 6) if isWeapon(item.uid) and isWeapon(item2.uid) and notisInArray(vocs, getPlayerVocation(cid)) then bag = getPlayerSlotItem(cid, 8) doRemoveItem(item2.uid,item2.type) doAddContainerItem(bag.uid,item2.itemid,item2.type) doPlayerSendCancel(cid, "you can't use two weapons.") end return true end function isWeapon(uid) -- Function by Mock the bear. uid = uid or 0 local f = getItemWeaponType(uid) if f == 1 or f == 2 or f == 3 then return TRUE end return FALSE end
em creaturescript.xml adiciona a tag
<event type="think" name="tw" event="script" value="twoweapons.lua"/>
e no login.lua coloque antes do ultimo return TRUE
registerCreatureEvent(cid, "tw")
se der algum erro so fala
^w^
va na pasta creaturescripts/script crie um arquivo lua com nome twoweapons e cole isso dentro delevocs = {4,8} --id das vocs que podem usar duas armas function onThink(cid, interval) item,item2 = getPlayerSlotItem(cid, 5),getPlayerSlotItem(cid, 6) if isWeapon(item.uid) and isWeapon(item2.uid) and notisInArray(vocs, getPlayerVocation(cid)) then bag = getPlayerSlotItem(cid, 8) doRemoveItem(item2.uid,item2.type) doAddContainerItem(bag.uid,item2.itemid,item2.type) doPlayerSendCancel(cid, "you can't use two weapons.") end return true end function isWeapon(uid) -- Function by Mock the bear. uid = uid or 0 local f = getItemWeaponType(uid) if f == 1 or f == 2 or f == 3 then return TRUE end return FALSE endem creaturescript.xml adiciona a tag
e no login.lua coloque antes do ultimo return TRUEregisterCreatureEvent(cid, "tw")se der algum erro so fala
ok vou testar amanha pois tenho que dormir e ja te falo se deu certo! e se der rep+
Habilidades :
Scripter = Bom
Mapper = Ótimo
Spriter = Bom
Programer = Ruim
Projetos\Topicos :
Att. JokerMind Renan =)
Ai, aqui um jeito mais fácil...
Vai em item.xml procure a sword e adc isso :
<attribute key="dualwield" value="1">
ficando assim
<item id="13871" article="a" name="Warrior Sword"> <attribute key="weight" value="5200"> <attribute key="defense" value="45"> <attribute key="attack" value="50"> <attribute key="weaponType" value="sword"> <attribute key="dualwield" value="1"> </item>
Dps se vc quiser que só x vocação use a sword vc abre o Weapons.xml e procure sua sword ai vc edita ela assim:
<melee id="13871" level="100" unproperly="1" event="function" value="default"> <!-- Warrior Sword --> <vocation name="Warrior"> <vocation id="12" showindescription="0"> </vocation></vocation></melee>
Explicando o Weapons.xml</attribute>
Ai, aqui um jeito mais fácil...
Vai em item.xml procure a sword e adc isso :
<attribute key="dualwield" value="1">ficando assim
<item id="13871" article="a" name="Warrior Sword"> <attribute key="weight" value="5200"> <attribute key="defense" value="45"> <attribute key="attack" value="50"> <attribute key="weaponType" value="sword"> <attribute key="dualwield" value="1"> </item>
Dps se vc quiser que só x vocação use a sword vc abre o Weapons.xml e procure sua sword ai vc edita ela assim:
<melee id="13871" level="100" unproperly="1" event="function" value="default"> <!-- Warrior Sword --> <vocation name="Warrior"> <vocation id="12" showindescription="0"> </vocation></vocation></melee>
Explicando o Weapons.xml</attribute>
Ai, aqui um jeito mais fácil...
Vai em item.xml procure a sword e adc isso :
<attribute key="dualwield" value="1">ficando assim
<item id="13871" article="a" name="Warrior Sword"> <attribute key="weight" value="5200"> <attribute key="defense" value="45"> <attribute key="attack" value="50"> <attribute key="weaponType" value="sword"> <attribute key="dualwield" value="1"> </item>
Dps se vc quiser que só x vocação use a sword vc abre o Weapons.xml e procure sua sword ai vc edita ela assim:
<melee id="13871" level="100" unproperly="1" event="function" value="default"> <!-- Warrior Sword --> <vocation name="Warrior"> <vocation id="12" showindescription="0"> </vocation></vocation></melee>
Explicando o Weapons.xml</attribute>
eduardobean manolo ta de parabens kkk rep+ pelo teu conselho gostei mtu agr so mudar o nome dual nas source VLW!
Habilidades :
Scripter = Bom
Mapper = Ótimo
Spriter = Bom
Programer = Ruim
Projetos\Topicos :
Att. JokerMind Renan =)