Then create a new Item-Case (i've used OpenNos.GameObject.SpecialItem)
Code:
//Namechange
case 1638:
if (session.Character.Group != null && session.Character.Inventory.Any(x => x.Item.VNum == 1638)) // Enter VNum
{
session.SendPacket(UserInterfaceHelper.GenerateMsg("Leave your group to change your name", 0));
}
else
{
session.SendPacket(UserInterfaceHelper.GenerateInbox($"#glmk^ 14 1 Charactername Charactername"));
}
break;
This should not be implemented inside the "CreateFamily" method, as its name tells, it's designed to handle family creation.
Create a designed method for the character name changements (which is already done through commands, just refactor both and merge the code properly, enjoy, you got a maintainable feature that you can plug to more things without having to again write the code somewhere else)
And stop using hardcoded values inside predicate lambdas, use configurations (struct/class configuration or App's settings through ConfigurationManager) or at least, const value with a real name so you get the compile time advantages and more maintainability...
This should not be implemented inside the "CreateFamily" method, as its name tells, it's designed to handle family creation.
Create a designed method for the character name changements (which is already done through commands, just refactor both and merge the code properly, enjoy, you got a maintainable feature that you can plug to more things without having to again write the code somewhere else)
And stop using hardcoded values inside predicate lambdas, use configurations (struct/class configuration or App's settings through ConfigurationManager) or at least, const value with a real name so you get the compile time advantages and more maintainability...
Hope you get it right,
Blowa.
I totally agree that this implementation is poor structured and definitly not well done.
I was rather depressed about the fact that people try selling such poor implementations of this feature and decided to post it for good.
Will definitly look into re-doing some of my older releases "the right way" as soon as i get enough freetime to do so. Am currently not capable of spending more then 5-10 Minutes on such things.
In my opinion the BasicPacketHandler could be a good spot to handle this.
But it is very usefull, thanks for sharing!
First of all thank you for your comment.
This was done in a rush.
I've located it in the FamilyCreate Method because i wanted the InGame Pop-Up to be present. Could've used the Speaker packet as well thou. I don't know how to trigger a packet-response from the client similar to this with another packet then those two to be honest, so i've done my 5 minute job and put it in there.
Might be possible to trigger the In-Game Pop-up with another recieve packet that allows me to send an unused Packet back to the Server.
FusionCMS Item Store Item Adden invalid item 07/27/2015 - Web Development - 4 Replies Hallo ich habe ein kleines Problem.
Ich habe mir eine Lizenz für FusionCMS v6 (World of Warcraft CMS) gekauft und installiert.
Als ich alles richtig eingestellt habe wollte ich ein Item hinzufügen über das Admin Panel aber jedes mal zeigt er mir invalid item.
Wäre super wenn ihr mir helfen könntet das Problem zu beseitigen.
Mfg
[Release]Namechange Bypass 06/23/2014 - 4Story - 13 Replies Hello there.
since i checked some user . i saw one selling namechange fix. to be honest if it is as i think, isn't a fix. ok. so do not buy. i'm just releasing the same here. (looks like he is selling my old bypass too. stupid d..k, if don't. i don't care)
There is the tables and the new TMAP service.
TCreateChar (TGAME_GSP)
/* CREATE CHARACTER PROCESS
[Suche] Komplette item.eix/epk, icon.eix/epk, item proto und item list 12/25/2010 - Metin2 Private Server - 6 Replies Hey =)
Wie die Überschrift schon sagt, suche ich eine komplette item.eix/epk, icon.eix/epk, item proto und item list am liebsten noch von den Waffen von .darki und den ganzen neuen Rüstungen/Schilden/Helmen, da ich überhaupt nicht weiß wie man dass zB mit der item proto macht und wenn ich sie einfach nur ersetze, wie zB durch die "Waffen" item proto von .darki sind die ganzen neuen Rüstungen weg ....
Ich hoffe irgendjemand könnte das machen, weil es bestimmt nicht nur für mich hilfreich ist...
Namechange 02/24/2005 - General Gaming Discussion - 2 Replies 1. erstellt euch einen neuen Charakter mit einem nickname welcher gegen die Regeln (ToS) verstößt
2. paged einem CSR das er den namen abändern soll (muss er sowieso da es ja gegen die regeln verstößt z.B. beilidigende Namen zu tragen)
wo liegt der sinn? die CSR's können euch in schon vorhandene nicknames umbenennen, stellt euch mal die scam-möglichkeiten vor ;)
das ihr bei sowas n ban kassieren könnt muss ich euch nicht extra sagen, oder? ^^