Iaew,vi nu ot de um migo meu lah, e resolvi arruma o bixo xD
Cria um arquivo de texto normal,copia tudo ai q ta em baxo e vai em Salvar Como...>maconheiro.xml e dentro coloque
<?xml version="1.0"?><monster name="Maconheiro" level="220" maglevel="300" experience="20000" pushable="0" speed="9999" armor="55" defense="55" canpushitems="1" staticattack="50" changetarget="200"> <health now="700000" max="700000"/> <look type="220" corpse="4323"/> <combat targetdistance="1" runonhealth="0"/> <blood color="30" effect="16" splash="4"/><attacks> <attack type="melee" mindamage="150" maxdamage="300" probability="100"/> <attack type="instant" name="sonar_green" mindamage="300" maxdamage="590" exhaustion="300" cycleticks="3000" probability="100"/> <attack type="instant" name="sonar_yellow" mindamage="300" maxdamage="590" exhaustion="400" cycleticks="3100" probability="90"/> <attack type="instant" name="sonar_blue" mindamage="400" maxdamage="690" exhaustion="500" cycleticks="3200" probability="80"/> <attack type="instant" name="utani gran hur" cycleticks="3000" probability="20"/> <attack type="instant" name="sonar_purple" mindamage="500" maxdamage="790" exhaustion="600" cycleticks="3300" probability="70"/> <attack type="distance" name="poisonarrow" mindamage="10" maxdamage="300" cycleticks="2000" probability="100"/> <attack type="instant" name="exevo gran mas mort" cycleticks="1000" probability="500"/> <attack type="instant" name="exura vita" cycleticks="4000" probability="60"/> <attack type="instant" name="bk exori" exhaustion="500" cycleticks="5000" probability="70"/></attacks><voices> <voice sentence="Eu Fumo MaconHaaaahhh!"/> <voice sentence="To DoidaumMM!"/></voices><defenses> <defense immunity="poison"/> <defense immunity="paralyze"/> <defense immunity="invisible"/> <defense immunity="drunk"/> <defense immunity="fire"/></defenses><loot> <item id="2160" countmax="100" chance1="100000" chancemax="0"/> <item id="2472" countmax="5" chance1="30000" chancemax="0"/> <item id="2671" countmax="5" chance1="20000" chancemax="0"/> <item id="2002" chance="999999"> <inside> <item id="2471" chance="9666"/> <item id="2469" chance="9909"/> <item id="2433" chance="97332"/> <item id="2453" chance="9333"/> <item id="2646" chance="9992"/> <item id="2390" chance="4533"/> <item id="2195" chance="4533"/> <item id="2352" chance="4533"/> <item id="2592" chance="4533"/> <item id="2160" countmax="100" chance1="10000" chancemax="0"/> </inside> </item></loot><summons maxSummons="9"> <summon name="Orshabaal" chance="500"/></summons></monster>
AGORA Vai na pasta Spells>Instant e crie um arquivo .lua com o nome de sonar_green e dentro coloque
area = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, }attackType = ATTACK_ENERGYneedDirection = falseareaEffect = NM_ME_SOUND_GREENanimationEffect = NM_ANI_NONEhitEffect = NM_ME_SOUND_GREENdamageEffect = NM_ME_SOUND_GREENanimationColor = GREENoffensive = truedrawblood = trueSpellObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)function onCast(cid, creaturePos, level, maglv, var)centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}SpellObject.minDmg = 200SpellObject.maxDmg = 500return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, SpellObject:ordered())end
Agora crie outro arquivo .lua com nome de sonar_yellow e dentro coloque
area = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, }attackType = ATTACK_ENERGYneedDirection = falseareaEffect = NM_ME_SOUND_YELLOWanimationEffect = NM_ANI_NONEhitEffect = NM_ME_SOUND_YELLOWdamageEffect = NM_ME_SOUND_YELLOWanimationColor = YELLOWoffensive = truedrawblood = trueSpellObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)function onCast(cid, creaturePos, level, maglv, var)centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}SpellObject.minDmg = 200SpellObject.maxDmg = 500return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, SpellObject:ordered())end
Crie novamente mais um arquivo .lua com o nome de sonar_purple e dentro coloque
area = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, }attackType = ATTACK_ENERGYneedDirection = falseareaEffect = NM_ME_SOUND_PURPLEanimationEffect = NM_ANI_NONEhitEffect = NM_ME_SOUND_PURPLEdamageEffect = NM_ME_SOUND_PURPLEanimationColor = PURPLE offensive = truedrawblood = trueSpellObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)function onCast(cid, creaturePos, level, maglv, var)centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}SpellObject.minDmg = 200SpellObject.maxDmg = 500return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, SpellObject:ordered())end
P finalizar, agora so falta ir em 2 lugares...
Spells.xml
Va na parte Monster e coloque as seguintes magias
<spell name="Sonar green" words="sonar_green" maglv="200" mana="2000" enabled="1"></spell><spell name="Sonar yellow" words="sonar_yellow" maglv="200" mana="2000" enabled="1"></spell><spell name="Sonar blue" words="sonar_blue" maglv="200" mana="2000" enabled="1"></spell><spell name="Sonar purple" words="sonar_purple" maglv="200" mana="2000" enabled="1"></spell>
E... Na pasta monster...
Dentro da pasta monster, procure um arquivo chamado monsters.xml
Coloque dentro :
<monster name="maconheiro" file="maconheiro.xml" />
Bom, eh isso =P
eu sei q o loot tah zuado... mais em breve irei arrumar xD
80%Me & 20%Jonny