R4ee
New Member
- Joined
- Apr 2, 2010
- Messages
- 8
- Reaction score
- 0
Hi guys.
I am willing to create new ots, however, there is one particular thing which I really need. I need a C++ code which will add to monster properties a tag / command which will make the monster check player's storage value and afterwards it will trigger the monster to attack player, otherwise it needs to make monster idle to a player. The code must also make the monster addvalue / change storage value if player kills the monster.
So for example, if my storage value = 100, then monster attacks me, otherwise it leaves me alone. Once I kill him, the monster changes my storage value from 100, to 101.
I have some ot engine - yurots probably. In monster file, the monster has 2 new fields, sag="x", addvalue="x"
I need such script for the Forgotten server, thanks a lot in advance.
I am willing to create new ots, however, there is one particular thing which I really need. I need a C++ code which will add to monster properties a tag / command which will make the monster check player's storage value and afterwards it will trigger the monster to attack player, otherwise it needs to make monster idle to a player. The code must also make the monster addvalue / change storage value if player kills the monster.
So for example, if my storage value = 100, then monster attacks me, otherwise it leaves me alone. Once I kill him, the monster changes my storage value from 100, to 101.
I have some ot engine - yurots probably. In monster file, the monster has 2 new fields, sag="x", addvalue="x"
<?xml version="1.0"?>
<monster name="Akkuman" level="100" maglevel="100" experience="1300" pushable="0" armor="35" defense="35" canpushitems="0" staticattack="50" saga="43" addvalue="44" changetarget="200" speed="350">
<health now="15700" max="15700"/>
<look type="163" corpse="0"/>
<combat targetdistance="0" runonhealth="1000"/>
<attacks>
<attack type="melee" mindamage="0" maxdamage="200" probability="50"/>
<attack type="rune" name="demon fireball" exhaustion="500" cycleticks="3000" probability="60"/>
<attack type="instant" name="exevo gran vis lux" exhaustion="50" cycleticks="3000" probability="60"/>
</attacks>
<defenses>
</defenses>
<loot>
<item id="2230" chance="10000000"/>
<item id="2148" countmax="90" chance1="90000" chancemax="0"/>
<item id="2148" countmax="75" chance1="90000" chancemax="0"/>
<item id="2152" countmax="3" chance1="90000" chancemax="0"/>
<item id="1987" chance="333330">
<inside>
<item id="2536" chance="1200"/>
<item id="2503" chance="1200"/>
<item id="2336" chance="1500"/>
<item id="2463" chance="1500"/>
<item id="2148" countmax="70" chance1="90000" chancemax="0"/>
<item id="2148" countmax="90" chance1="90000" chancemax="0"/>
<item id="2230" chance="10000000"/>
</inside>
</item>
</loot>
<voices>
</voices>
</monster>
I need such script for the Forgotten server, thanks a lot in advance.