Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item Bind Complete #214

Merged
merged 4 commits into from Nov 7, 2013
Merged

Item Bind Complete #214

merged 4 commits into from Nov 7, 2013

Conversation

mhalicot
Copy link
Contributor

Update to latest version
thanks to Master Ind for answering small issue :)

~ Topic: http://hercules.ws/board/topic/1198-please-implement-accound-bound-items/

… crash.

Im pretty sure its on the clif.c

Signed-off-by: sevenzz23 <sevenzz23@yahoo.com>
Fixed, some issue thanks to Master Ind ;)

Signed-off-by: sevenzz23 <sevenzz23@yahoo.com>
Signed-off-by: sevenzz23 <sevenzz23@yahoo.com>
@@ -316,6 +316,13 @@
290: The player is no longer killable.
291: Weather effects will dispell on warp/refresh
292: Killer state reset.
//Item Bound System
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These strings could use some grammar review... (you 'bind' the items, so that they become 'bound' to the account/character/whatever; you don't 'bound' them, so that they become 'bounded' to an account/char/etc...)

@MishimaHaruna
Copy link
Member

There seem to be some critical flaws in how mapif_parse_itembound_retrieve works, either I or Ind will comment on those after I'm done reviewing the rest

@mhalicot
Copy link
Contributor Author

mhalicot commented Nov 1, 2013

I having problem in changing mapif_parse_itembound_retrieve to mapif_parse_ItemBoundRetrieve

When I try to change it, guild bounded items cant store anymore in guild storage.

@@ -52,8 +52,8 @@
-1,10,-1,14, 14,19, 6,-1, 14,14, 0, 0, 0, 0, 0, 0, // 3020- Party
-1, 6,-1,-1, 55,19, 6,-1, 14,-1,-1,-1, 18,19,186,-1, // 3030-
-1, 9, 0, 0, 0, 0, 0, 0, 7, 6,10,10, 10,-1, 0, 0, // 3040-
-1,-1,10,10, 0,-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 3050- Auction System [Zephyrus]
6,-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 3060- Quest system [Kevin] [Inkfish]
-1,-1,10,10, 0,-1, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 3050- Auction System [Zephyrus] [Mhalicot]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Extra space before the 12 that breaks alignment on the rest of the line
  • Comment is no longer correct, since it's no longer Auction System alone.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@@ -212,6 +212,7 @@ struct NORMALITEM_INFO {
#endif
#if PACKETVER >= 20080102
int HireExpireDate;
unsigned short bindOnEquipType;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you positive? Won't adding two bytes here break anything, if the packet length was already correct before?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup this is wrong.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@MishimaHaruna
Copy link
Member

@shennetsind , could you please comment about the security concerns we discussed earlier, if you don't mind? (I believe your knowledge of the char-map server data flow is better than mine, plus my headache is getting worse)
Thank you :3

@shennetsind
Copy link
Member

oki will do

}
mapit->free(iter);
}
intif->itembound_req(char_id,aid,guild_id);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before calling this, a flag in guild_storage should be set to lock it so no one can add/remove items until the response comes back, otherwise in the case char-server lags the guild storage will be prone to exploits

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found out that itembound_req already sets a gstor->lock

Signed-off-by: sevenzz23 <sevenzz23@yahoo.com>
@shennetsind
Copy link
Member

Alright I'll get to work on this.

@shennetsind
Copy link
Member

I'm in the process of making adjustments and updating your pull request with the latest modifications, please do not commit anything else otherwise my merging efforts will be wasted.

@shennetsind shennetsind merged commit 6be40f5 into HerculesWS:master Nov 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants