Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amaz weapon - number of javel
#5
Maybe i found a way.
I need to test and adjust.

In NTC_PutSkill, i added this code

Code:
if (skillid == 35){
    var _weapon;
    _weapon = [COLOR=#ff0000]me.GetItems()[/COLOR];

    if(_weapon){
        for(var i = 0 ; i < _weapon.length ; i++){
            if((_weapon[i].itemflag&0x100) || [COLOR=#ff0000]((_weapon[i].itemtype == 44 || _weapon[i].itemtype == 87) && (_weapon[i].GetStat(70) < 10))[/COLOR]){    // weapon broke or less then 10 javel
                if(_weapon[i].mode == 1 && _weapon[i].itemloc == 4 || _weapon[i].itemloc == 5){
                    Print(COLOR_8 + "My weapon broke, I use another skill.");
                    skillid = 24;
                    break;
                }    
            }
        }
    }
}

i check all the "weapon" returned the function "me.GetItems", for the type.
amazonjavelin -> 87
javelin -> 44 (i non need this one, but so it is compkete).

then i use the stat 70 (i found it in the bow script, for the arrow ... Tongue)

if the weapon type is 87 (or 44), and the stat 70 is less then 10, it change the skill (from 35 to 24).
Reply


Messages In This Thread
Amaz weapon - number of javel - by Adamz - 03-04-2012, 05:56 AM
Amaz weapon - number of javel - by comper - 03-05-2012, 06:09 AM
Amaz weapon - number of javel - by Adamz - 03-06-2012, 01:20 AM
Amaz weapon - number of javel - by comper - 03-06-2012, 01:58 AM
Amaz weapon - number of javel - by Adamz - 03-06-2012, 05:13 AM
Amaz weapon - number of javel - by comper - 03-06-2012, 06:51 AM
Amaz weapon - number of javel - by Adamz - 03-06-2012, 07:13 PM
Amaz weapon - number of javel - by comper - 03-07-2012, 01:12 AM
Amaz weapon - number of javel - by Adamz - 03-12-2012, 12:33 AM
Amaz weapon - number of javel - by comper - 03-15-2012, 07:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  d2nt max game number superchil8 1 260 12-28-2011, 01:15 AM
Last Post: bugme143
  MF Sorc Switchen Weapon on 10% boss life daroma123 0 122 06-09-2011, 11:30 PM
Last Post: daroma123
  Weapon/Armor Stands script D2NT? alii 0 534 04-17-2011, 01:58 PM
Last Post: alii
  Weapon Switch D2NT xecutionr13ds 0 1,517 09-02-2009, 05:49 PM
Last Post: xecutionr13ds
  Cursor over weapon XKazeCloudX 2 278 06-14-2007, 03:53 PM
Last Post: XKazeCloudX
  i want vica card number rew 1 404 09-13-2006, 03:33 AM
Last Post: Bloodangel26
  weapon script Pierson5 3 250 05-26-2006, 12:56 AM
Last Post: mikea454
  Hero Editor; Do a weapon Eth and Add Socks? SoderberG 1 278 04-20-2006, 06:08 AM
Last Post: Shift
  Question on weapon switch! coldfire444 1 331 12-28-2005, 10:04 PM
Last Post: Wozza
  weapon repair payne 9 370 12-15-2005, 03:10 AM
Last Post: payne

Forum Jump:


Users browsing this thread: 1 Guest(s)