PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Archery>Tactics

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095)
Display posts from previous:   

Author Message
lokaum



Joined: 25 Dec 2006
Posts: 29

PostPosted: Thu Jan 11, 2007 10:35 am    Post subject: Archery>Tactics Reply with quote

Hi people

I want that thing:

- Archery damage dont base in Tactics

Where i need change the thing?

Author Message
SMJ



Joined: 10 May 2006
Posts: 113

PostPosted: Thu Jan 11, 2007 10:59 am    Post subject: Reply with quote

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.

Author Message
lokaum



Joined: 25 Dec 2006
Posts: 29

PostPosted: Fri Jan 12, 2007 2:46 pm    Post subject: Reply with quote

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...

Author Message
SMJ



Joined: 10 May 2006
Posts: 113

PostPosted: Fri Jan 12, 2007 8:16 pm    Post subject: Reply with quote

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

Author Message
lokaum



Joined: 25 Dec 2006
Posts: 29

PostPosted: Fri Jan 12, 2007 9:32 pm    Post subject: Reply with quote

Thanks man!!!!!!

Now working... =]

Author Message
SMJ



Joined: 10 May 2006
Posts: 113

PostPosted: Sat Jan 13, 2007 1:08 am    Post subject: Reply with quote

Glad I could help Smile

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095) All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty