Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 20.06.2009, 08:27   #1
goodtimeshaxor
Guest
 
Posts: n/a
Default Equip Item over Already Equipped Item

My server has had a problem with not allowing item skills to be put on hotbar. We tried to fix that by changing how item skills are given. We made it so that they are added to the DB whenever an item is equipped. We also coded it so the skill is deleted upon unequip.

The problem is that if you equip and item and then equip a second item that is in the same slot, you end up with both skills learned. You could do this over and over and have a billion skills but only wear one item.

No unequip function is called at this instance which means both skills are learned. How can I solve this exploit?

I see the following:

INT32 UnequipItem(int slotId)

However, this is not called when you double click an item to equip it. And I don't know of a way to figure out which slot it's being equipped to.

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-20-2009, 08:27 AM. Открыть источник.
 
Old 20.06.2009, 11:00   #2
mrmac
Guest
 
Posts: n/a
Default Equip Item over Already Equipped Item

if you wrote it good, it won't happen.

show code.

Edit: validateattachedskills is also a way to secure.

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-20-2009, 11:00 AM. Открыть источник.
 
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:11.