- Fórum
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- Arrumando Algumas Coisas No We Do
MA
Arrumando Algumas Coisas No We Do
Por mapperneto, 02 de out. de 2010 em Actions e Talkactions
otserv
tibia
script
1
1.4k
Por mapperneto, 02 de out. de 2010 em Actions e Talkactions
info
Grupo: Campones
Registrado: 24/05/10
Posts: 54
Reputação: +4
Char no Tibia: Secret
Ola galerinha do Xtibia!
Bom estou trazendo a vocês algumas coisas para deixar o We Do mais parecido com o global
para quem não sabe o que é We Do é um serve feito por Doidin, Comedinhasss, Aluxes e Cykotitan
e eu estou ajudando o comedinhas a arrumar o serve para ficar cada vez mais parecido com o global
arrumando bugs e deixando o serve mais perfeito.
bom vamos parar de conversa e ir ao ponto!
Bom,uma das coisas que estou trazendo é o complemento da quest de yalahar
é a quest que ganha (Yalahari Mask,Yalahari Leg Piece,yalahari Armor)
mais Para quem conhece o global sabe que esta falando alguma coisa né?
SIM o second addon yalaharian
bom aqui esta o complemento da quest
Va até We Do OTS \data\movements\scripts
procure o arquivo lua chamado azerus (abra ele com bloco de notas ou um programa que fica a seu criterio)
apague o que esta la e coloque isso
function onStepIn(cid, item, position, fromPosition)
--Config-->
local queststatus = getPlayerStorageValue(cid, 50001)
--EndConfig-->
if item.actionid == 1974 and queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "It seems by defeating Azerus you have stoped this army from entering your world! Better leave this ghastly place forever.")
doPlayerAddOutfit(cid, 325, 2)
doPlayerAddOutfit(cid, 324, 2)
setPlayerStorageValue(cid, 4765, 1)
return TRUE
end
if item.actionid == 1973 and queststatus == -1 then
-- Here is the code start:
starting={x = 576, y = 560, z = 10, stackpos = 253}
checking={x=starting.x, y=starting.y, z=starting.z, stackpos=starting.stackpos}
ending={x = 586, y = 572, z = 10, stackpos = 253}
players=0
totalmonsters=0
monster = {}
repeat
creature= getThingfromPos(checking)
if creature.itemid > 0 then
if getPlayerAccess(creature.uid) == 0 then
players=players+1
end
if getPlayerAccess(creature.uid) ~= 0 and getPlayerAccess(creature.uid) ~= 3 then
totalmonsters=totalmonsters+1
monster[totalmonsters]=creature.uid
end
end
checking.x=checking.x+1
if checking.x>ending.x then
checking.x=starting.x
checking.y=checking.y+1
end
until checking.y>ending.y
if players==0 then
trash= {x=33193, y=31689, z=15}
current=0
repeat
current=current+1
doTeleportThing(monster[current],trash)
until current>=totalmonsters
end
-- Here is the end of it
doTeleportThing(cid, player_pos_entrada)
doSendMagicEffect(player_pos_entrada, 10)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Você já terminou a quest!')
end
end
Bom,agora vamos a alguns bugs
vocês devem ter reparado que players (sorcerers e druids) que summonam monstros estão conseguindo summonar o rocko e o The Axeorcist
isso não é nada bom eles não estão na lista de summons do global e tambem tem muita life vamos arrumar isso
Va Até We Do OTS\data\monster\New Frontier
abra o the axeorcist (no bloco de notas ou em um programa isso fica a seu criterio)
apague tudo e coloque isso
<?xml version="1.0" encoding="UTF-8"?>
<monster name="The Axeorcist" nameDescription="The Axeorcist" race="blood" experience="3000" speed="250">
<health now="5000" max="5000"/>
<look type="8" corpse="5980"/>
<targetchange interval="5000" chance="8"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="1"/>
<flag convinceable="1"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="0"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="45" attack="100"/>
</attacks>
<defenses armor="15" defense="12">
</defenses>
<elements>
<element earthPercent="-10"/>
<element energyPercent="-10"/>
<element deathPercent="-10"/>
<element holyPercent="10"/>
</elements>
<voices interval="5000" chance="10">
<voice sentence="FIGHT!" yell="1"/>
</voices>
</monster>
Para o rocko você devera fazer o mesmo abrir apagar e colar isso
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Rocko" nameDescription="Rocko" race="blood" experience="3400" speed="180" manacost="0">
<health now="10000" max="10000"/>
<look type="67" corpse="6005"/>
<targetchange interval="5000" chance="8"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="1"/>
<flag convinceable="1"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="0"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="28" attack="100"/>
<attack name="poison" interval="2000" chance="20" length="8" spread="0" min="-0" max="-125">
<attribute key="areaEffect" value="poison"/>
</attack>
<attack name="physical" interval="2000" chance="10" length="8" spread="0" min="-0" max="-411">
<attribute key="areaEffect" value="groundshaker"/>
</attack>
</attacks>
<defenses armor="10" defense="18"/>
<elements>
<element holyPercent="10"/>
<element physicalPercent="15"/>
<element firePercent="30"/>
<element energyPercent="25"/>
<element icePercent="20"/>
</elements>
<immunities>
<immunity paralyze="1"/>
<immunity earth="1"/>
<immunity death="1"/>
</immunities>
</monster>
bom ai está algumas coisas arrumadas e melhoradas para que o We Do Fique mais parecido com o global!
OBS:Se forem postar isso em outro lugar coloquem meus creditos
Se eu postei na area errada desculpa podem mover o topico para area certa se pussivel