PenUltima Online

It is currently Sat Oct 11, 2008 10:28 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: remove attribute not working?
PostPosted: Sat Sep 09, 2006 12:39 am 
Offline

Joined: Sun Aug 27, 2006 6:12 pm
Posts: 14
Code:
   if( (changeGraphic == 0x190 ) or (changeGraphic == 0x191 ));
      SendSysMessage( caster, "remove stat works ");
      if (GetObjProperty( caster, "SubRaceName" ) == "Cat")
         RemoveAttributeMod(caster, ATTRIBUTEID_STRENGTH, CInt(50));
         RemoveAttributeMod(caster, ATTRIBUTEID_DEXTERITY, CInt(50));
         RemoveAttributeMod(caster, ATTRIBUTEID_INTELLIGENCE, CInt(50));
         SendSysMessage( caster, "you lose stat cat" );
endif
endif


That is an extract from a script i'm working on, the script adds stats when your shapechanged, and removes them when your not. However it doesn't remove them, the if statement works as the sys message comes up. So that leaves me with the removeattributemod been incorrect. Can any1 help me.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 09, 2006 5:13 am 
Offline

Joined: Sun Aug 27, 2006 6:12 pm
Posts: 14
lots of yelling and its solved. Didn't need number to remove, just needed the attribute mod it was under.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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