1 Attachment(s)
Buy Gender/Color Name[EG-Web]
Hi all again, here I leave two simple modules that I did the other day, these are adapted for the web of euro-gunz.
NOTE: You need the "tables" for this web like for the Shop, etc or use a direct link "index.php?do=buygender,etc".Do it yourself.If you don't have the tables, use a direct link:
Code:
-index.php?do=buycolorname;
-index.php?do=buygender
NOTE 2: For buy color name, you need a make a custom grade, editing theduel.exe.
Search on ragezone some guides.
The. rar contains the guides for:
Code:
-Add other colors (buycolorname module)
-Edit the price of this two items ("buy gender", "buy color name ")
-Add to these two articles to shopevent
And the files:
Code:
-Buy gender(new)
-Buy color name(Updated)
-logbuycolor.txt
-logbuygender.txt
-A image for the item
This scripts work fine, and this generate a log of actions (see the folder /logs/log---.txt)
If anyone has any problems let me know through this post
Pass of the rar: mutter
Sorry for my english,
Regards
Update: Attached file update.
Update 2 : Download the new version Modules v.1.1.rar
Update 3: Fix some bugs, thanks Dragon Jie for report the bug/error.
Re: Buy Gender/Color Name[EG-Web]
sorry, delete this comment please.
Re: Buy Gender/Color Name[EG-Web]
Re: Buy Gender/Color Name[EG-Web]
I don't know if you realize, but says you lack the dbo.ShopEvents, mean you need the DB of EuroGunzWeb
I don't have this DB, make your own the DB for the web is easy.
Re: Buy Gender/Color Name[EG-Web]
Re: Buy Gender/Color Name[EG-Web]
Can you add also the function for the module_buycolorname.php, The selected color is the same as the color/grade of the account?
-edit-
As you have done here (module_buygender.php):
Code:
if(isset($_POST['submit'])){
$aid = clean($_SESSION['AID']);
$sex = clean($_POST['gender']);
$cid = explode( '|', clean( $_POST['char'] ) );
$idcid = $cid[0];
$idsex = $cid[1];
$price = intval(60);
$cssid = intval(3); // edit
//The selected gender is the same actual gender of the character?
elseif ($idsex == $sex) {
SetMessage("Message from System", array("Your char actually have this gender, Please choose another gender"));
header("Location: index.php?do=buygender");
die();
}
Re: Buy Gender/Color Name[EG-Web]
Thanks for releasing you creations bro.
Re: Buy Gender/Color Name[EG-Web]
Quote:
Originally Posted by
Dragon Jie
Can you add also the function for the module_buycolorname.php, The selected color is the same as the color/grade of the account?
-edit-
As you have done here (module_buygender.php):
Code:
if(isset($_POST['submit'])){
$aid = clean($_SESSION['AID']);
$sex = clean($_POST['gender']);
$cid = explode( '|', clean( $_POST['char'] ) );
$idcid = $cid[0];
$idsex = $cid[1];
$price = intval(60);
$cssid = intval(3); // edit
//The selected gender is the same actual gender of the character?
elseif ($idsex == $sex) {
SetMessage("Message from System", array("Your char actually have this gender, Please choose another gender"));
header("Location: index.php?do=buygender");
die();
}
Oh I forgot that, I update the post.
Regards.
---------- Post added at 03:24 PM ---------- Previous post was at 02:28 PM ----------
Quote:
Originally Posted by
Military
Thanks for the release.
Quote:
Originally Posted by
ToonLike
Thanks for releasing you creations bro.
Thanks.
Re: Buy Gender/Color Name[EG-Web]
So useful, thank you very much :).
Re: Buy Gender/Color Name[EG-Web]
Quote:
Originally Posted by
mutter
Oh I forgot that, I update the post.
Regards.
---------- Post added at 03:24 PM ---------- Previous post was at 02:28 PM ----------
Thanks.
The function still doesn't works!
Re: Buy Gender/Color Name[EG-Web]
Quote:
Originally Posted by
Dragon Jie
The function still doesn't works!
Updated post , download the new rar.
I fixed an error with UGradeID(when you buy the color name, the SESSION ugradeid now update )
And added a filter for gm/mutted/admin/ban , so they can't purchase this item.
Quote:
Originally Posted by
adz28
So useful, thank you ber much :).
Thanks.
Re: Buy Gender/Color Name[EG-Web]
Alright, it works perfect now!
thx for update!
Re: Buy Gender/Color Name[EG-Web]
Thank you Very Much, nice releases :thumbup:
EDIT: In case of use this for Donations, i need change All ShopEvents.db for ShopItems.db, and all types of ShopEvents?
Re: Buy Gender/Color Name[EG-Web]
I had already done that long time ago ...
But it will help many people, good work!
Re: Buy Gender/Color Name[EG-Web]
Quote:
Originally Posted by
Turunen
Thank you Very Much, nice releases :thumbup:
EDIT: In case of use this for Donations, i need change All ShopEvents.db for ShopItems.db, and all types of ShopEvents?
Use ShopEvent as Shop Donator is basically same
---------- Post added at 10:37 PM ---------- Previous post was at 10:32 PM ----------
Quote:
Originally Posted by
gaspartx
I had already done that long time ago ...
But it will help many people, good work!
I congratulate you for having done so long ago, I did recently and is very basic , thus don't cost me and for that reason I made public this module.
But thanks.