It's not that hard to realize. The Upgrade is already on the World Server end, you can simply check the upgrade value and you can send a all notice from there.
It's not that hard to realize. The Upgrade is already on the World Server end, you can simply check the upgrade value and you can send a all notice from there.
sorry master but i can't do that things coz im just new in flyff developing
if ( nResult == 1 && *pItemElem0->GetAbilityOptionPtr() == 9 ) // 9 + successs = 10
{
char szUpgradeNotice[150] = { 0, };
sprintf(szUpgradeNotice, "%s just successfully upgradet an item to +10", pUser->GetName());
g_DPCoreClient.SendSystem(szUpgradeNotice);
}
But keep in mind, that this message only appears on Safe Upgrade if a item reaches +10 and via the standard /sys notice.
You can also select the Itemname and print it out for example, or make a difference between accessory which acually should also print a message if it reach +10 instead of +20, but i wont give you everything fully done.
This is just as start point - go, get some expierence by yourself.
if ( nResult == 1 && *pItemElem0->GetAbilityOptionPtr() == 9 ) // 9 + successs = 10
{
char szUpgradeNotice[150] = { 0, };
sprintf(szUpgradeNotice, "%s just successfully upgradet an item to +10", pUser->GetName());
g_DPCoreClient.SendSystem(szUpgradeNotice);
}
But keep in mind, that this message only appears on Safe Upgrade if a item reaches +10 and via the standard /sys notice.
You can also select the Itemname and print it out for example, or make a difference between accessory which acually should also print a message if it reach +10 instead of +20, but i wont give you everything fully done.
This is just as start point - go, get some expierence by yourself.
Synaptic
wouldnt at that moment "GetAbilityOptionPtr" would return 10 since the value would increase on success before returning the result to this function? also y even get the pointer from the reference of the value when you can just check the default value with GetAbilityOption(). you're not applying an edit to the pointer anyway. its unneeded schematics.
but yes this code is pretty much how one would do it
wouldnt at that moment "GetAbilityOptionPtr" would return 10 since the value would increase on success before returning the result to this function? also y even get the pointer from the reference of the value when you can just check the default value with GetAbilityOption(). you're not applying an edit to the pointer anyway. its unneeded schematics.
but yes this code is pretty much how one would do it
You are absolutly right. I copied the wrong code. When i did the tests, i addet the following lines of code:
Code:
// acually 9 because were in the success bracket
if (*pAbilityOption == 9) {
char szUpgradeNotice[150] = { 0, };
sprintf(szUpgradeNotice, "%s just successfully upgradet an item to +10", pUser->GetName());
g_DPCoreClient.SendSystem(szUpgradeNotice);
}
[REQUEST] Can i Request A Acc/Char PHP Script 09/27/2008 - CO2 Private Server - 6 Replies hello i was wondering if anyone have made a acc/char creation page in one yet? is so can anyone release itplease?
[Request] thats right [b]I[/b] have a request 09/24/2008 - CO2 Private Server - 0 Replies How would I go about removing an item from a character's model without removing it from the inventory?
for(byte i=0; i < 10; i++)
SendPacket(General.MyPackets.RemoveItem((long)MyCh ar.Equips_UIDs, i, 6));
this removes them from the char and from their inventory screen... , the RemoveItem packet is as follows:
public byte RemoveItem(long UID, byte pos, byte type)
[REQUEST]2 small simple request please look in here 09/20/2008 - CO2 Private Server - 6 Replies Hello all no one here knows me i am Rukia Owner Od DarkAngelzCO 2.0 i was wondering if anyone can kindly show me 1 solutions
first off can anyone tell me how i can add day/night to work for everyone
i have been searching deeply for it can anyone please show me with a guide how to get it on my server?
*REQUEST* Powerlevel spots 30-70* *REQUEST* 09/10/2008 - Silkroad Online - 16 Replies Hello, this is just a request, please can someone do a list of the powerlevel spots with a screenshot of the map and the area high lighted from 30-70, I mean lvl 30 mobs to lvl 70 mobs, thanks alot :)
[Request] Make a Request section 05/09/2007 - Conquer Online 2 - 15 Replies Here is my propsal (I posted this idea in another topic but I felt that it needs its own topic).
I would like to request on behalf of all the CO community here, that the staff at elitepvp make a requests section. This section would be a place for all these people asking for requests - be it the noob asking for "duep haxz", or the guy asking for a new proxy. What I mean is it would be a request forum, to handle all requests.
I also propose that in this forum, post count will not increase....