Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Mega Offer Notification

Junior Spellweaver
Joined
Jul 15, 2012
Messages
102
Reaction score
21


Sicily94 - Mega Offer Notification - RaGEZONE Forums


Go to Communication->Outgoing->ServerPacketHeader.cs and put this at bottom!

PHP:
public const int TargetOfferMessageComposer = 3763; //PRODUCTION-201611230949-886705386

Go to Communication->Outgoing->Notification and create a new file called: TargetOfferMessageComposer.cs and put this!

PHP:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Plus.Communication.Packets.Outgoing.Notifications
{
class TargetOfferComposer : ServerPacket
{
public TargetOfferComposer() : base(ServerPacketHeader.TargetOfferMessageComposer)
{
base.WriteInteger(1);
base.WriteInteger(190);
base.WriteString("bf16_tko_gr1");
base.WriteString("bf16_tko1");
base.WriteInteger(105); //Credits
base.WriteInteger(105); //Diamonds
base.WriteInteger(5); 
base.WriteInteger(2); 
base.WriteInteger(259199); //3 Days ... time in seconds
base.WriteString("targeted.offer.bf16_tko_gr1.title"); //Title
base.WriteString("targeted.offer.bf16_tko_gr1.desc"); //Description
base.WriteString("targetedoffers/tko_xmas16.png"); //Image Large
base.WriteString("targetedoffers/tto_blkfri_20_small.png"); //Image on Close Notification
base.WriteInteger(1);
base.WriteInteger(15);
base.WriteString("HC_1_MONTH_INTERNAL"); //1 Month HC
base.WriteString("xmas13_snack"); //Snack
base.WriteString("deal_10bronzecoins"); //10 Credits 
base.WriteString("xmas_c15_roof1"); //Roof Building
base.WriteString("xmas12_snack"); //Snack
base.WriteString("deal_10bronzecoins"); //10 Credits
base.WriteString("deal_10bronzecoins"); //10 Credits
base.WriteString("xmas_c15_buildmid1"); //Building 1
base.WriteString("xmas_c15_buildbase1"); //Building 2
base.WriteString("deal_10bronzecoins"); //10 Credits
base.WriteString("clothing_longscarf"); //Clothes Scarf
base.WriteString("deal_10bronzecoins"); //10 Credits
base.WriteString("deal_10bronzecoins"); //10 Credits
base.WriteString("BADGE"); //
base.WriteString("deal_10bronzecoins"); //10 Credits 
}
}
}

CREATE A FOLDER IN C_IMAGES CALLED: targetedoffers and insert this images!

Sicily94 - Mega Offer Notification - RaGEZONE Forums


Sicily94 - Mega Offer Notification - RaGEZONE Forums


 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Nov 29, 2012
Messages
42
Reaction score
4
Is it mandatory to have this production in the emulator? PRODUCTION-201611230949-886705386

It did not work here :/
 
Experienced Elementalist
Joined
Nov 11, 2015
Messages
238
Reaction score
89
Omg I was just thinking of releasing that, thanks!
 
Banned
Banned
Joined
Aug 25, 2009
Messages
431
Reaction score
190
If anyone knows of a better way to make the offer "remove itself" when it's been bought please share?

Me and Sicily94 currently send the offer back to client with the purchase limit as 0
 
Joined
Apr 19, 2011
Messages
562
Reaction score
53
Why not make this configurable? So you can change the settings in the database. Which text must be shown on the window, how much credits, which items you get. Now you need to edit the emulator to change the offers.
 
Custom Title Activated
Loyal Member
Joined
Oct 26, 2012
Messages
2,357
Reaction score
1,086
I kind of find this a bit disappointing, I know, you release the structure, that's good. But why not add a little system that gets it from the database etc.? Anyways, still good release.

I'm saying this because I remember the new catalog frontpage being completely static in Plus.
 
git bisect -m
Loyal Member
Joined
Sep 2, 2011
Messages
2,171
Reaction score
916
I kind of find this a bit disappointing, I know, you release the structure, that's good. But why not add a little system that gets it from the database etc.? Anyways, still good release.

I'm saying this because I remember the new catalog frontpage being completely static in Plus.

This is coded in Yupi Emulator and Azure Emulator.

But yes, why only the structure. A system in Database to manage the price, the offers, the images, the rewards, etc. Will be interesting. Also an API :)command) for this will be good.
 
Joined
Apr 30, 2007
Messages
2,339
Reaction score
1,547
If anyone knows of a better way to make the offer "remove itself" when it's been bought please share?

Me and @Sicily94 currently send the offer back to client with the purchase limit as 0

Once it's been bought set a boolean to true and store it and when the packet is next received by the server, simply send nothing to the client?
 
Newbie Spellweaver
Joined
Apr 29, 2014
Messages
89
Reaction score
59
Once it's been bought set a boolean to true and store it and when the packet is next received by the server, simply send nothing to the client?

I think he means getting rid of the offer once it's been purchased. So the overlay for it goes away without having to reload the hotel, ext.
 
Banned
Banned
Joined
Aug 25, 2009
Messages
431
Reaction score
190
Maybe the way you're currently doing it is correct? Or maybe there is another packet to confirm the purchase that you don't have yet.

Seems like it shouldn't be the correct way, but it does appear to work.
Thanks for all the suggestions, think I'll just leave it with sending back a '0' limit.
 
Newbie Spellweaver
Joined
Nov 19, 2016
Messages
10
Reaction score
0
Only for release 201611230949-886705386?
 
Back
Top