It is currently Fri Nov 21, 2008 8:45 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Archery>Tactics
PostPosted: Thu Jan 11, 2007 6:35 am 
Offline

Joined: Mon Dec 25, 2006 6:33 am
Posts: 45
Hi people

I want that thing:

- Archery damage dont base in Tactics

Where i need change the thing?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 6:59 am 
Offline

Joined: Wed May 10, 2006 5:15 pm
Posts: 113
That's not scripted in POL095. That's handled by the core. If you don't want that to happen, you'll have to handle it in a syshook script.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 10:46 am 
Offline

Joined: Mon Dec 25, 2006 6:33 am
Posts: 45
look...

Code:
use uo;
use os;

include "include/skillpoints";
include "include/attributes";

program shilcombat()

   print( "Using ShilcombatAdvancement..." );
   return 1;

endprogram


exported function ShilCombatAdvancement( attacker, weapon, defender )

    If( weapon )
    Var SkillID := FindSkillidByIdentifier(weapon.attribute);
    AwardPoints( attacker, SkillID, 30 );
    Else
    AwardPoints( attacker, 43, 30 );
    Endif

    AwardPoints( attacker, 27, 30 );

endfunction

function FindSkillidByIdentifier(skid)
  var retval;
  case(skid)
    "Wrestling": retval := SKILLID_WRESTLING;
    "Fencing":   retval := SKILLID_FENCING;
    "Swords":    retval := SKILLID_SWORDSMANSHIP;
    "Swordsmanship":    retval := SKILLID_SWORDSMANSHIP;
    "Mace":      retval := SKILLID_MACEFIGHTING;
    "Macefighting":      retval := SKILLID_MACEFIGHTING;
    "Archery":    retval := SKILLID_ARCHERY;
  endcase
  return retval;
endfunction


if i remove:
"Archery": retval := SKILLID_ARCHERY;

only Tactics up while i macro archery...

i want do inverse... up only archery, but no up tactics...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 4:16 pm 
Offline

Joined: Wed May 10, 2006 5:15 pm
Posts: 113
What you want to do is an exception, right? That narrows it down to either any conditional expression. In this case, you only want to block out one skill; so you use an if-else exception. If you look at client.inc, you'll see that SKILLID_TACTICS := 27. You want to avoid adding skillpoints to SKILLID_TACTICS, so the first part that comes to mind is the line:
Code:
AwardPoints( attacker, 27, 30 );

Thus, the fix is:
Code:
if( SkillID != SKILLID_ARCHERY )
    AwardPoints( attacker, 27, 30 );
endif


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 5:32 pm 
Offline

Joined: Mon Dec 25, 2006 6:33 am
Posts: 45
Thanks man!!!!!!

Now working... =]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 9:08 pm 
Offline

Joined: Wed May 10, 2006 5:15 pm
Posts: 113
Glad I could help :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl