Jump to content

Question about UpdatePacket


Recommended Posts

Hey guys, i want to create a new Special bonus depending on which Equipment Part (checked by vnum) is equipped. So i tried this with the updatepacket function in Char.cpp but i hardcoded it a lot and i actually didnt knew how to do it correct.

 

For example if two of 3 Costume Hair/Weapon/Armor equipped then give a AddAffect Bonus and if 3 are equipped then increase one of the values or even add new bonus. this should be depending on vnum..

Can someone help me please ? I don’t even think the UpdatePacket function is the correct place to do this. :(
 

@VegaS™@Nirray

 

sorry Vegas for always quoting you but you always help :D

Edited by Kafa
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

13 hours ago, Denis said:

Take a look into setcell func or equipitem, there you can iterate through equip slots and count if the vnums you want are equiped

 

Hey Denis,

 

first of all thank you for answer, but there is no function called SetCell and in EquipItem i do not know howto remove the affect, if the condition isnt correct anymore.

 

edit:

 

i have done it now this way:

 

in setwear

Edited by Kafa
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.