Jump to content

My Vote Reward system (individual reward | Verry easy)+ how to install


Recommended Posts

Posted

======update 2======

some1 requested it for l2jfrozen pack

i've modifed the banking, the rest must be the same.. but i don't have a l2jfrozen server so i can't test it, the only thing that may be wrong is the import

you can download it here

http://www.4shared.com/file/oN08HXxg/BankingCmd.html

change the factory import to :com.l2jfrozen.util.database import L2DatabaseFactory to fix the script

 

i have made a 2.0 version of this but i don't feel like shareing it...

but you can check it live on http://www.l2epicwarriors.org/

 

One important thing! : Hopzone dose not allow this type of system, you will get warnings and maybe even the server removed from them, any other sites dose not have a problem(as far as i know)

 

=========update==========

for 2 data base and one connection

$DBLoc='localhost';

$DBUser='root';

$DBPass='123123';

$DBName='l2jdb';

$DBLName='l2jlogin';

...........................................

 

 

if (!$con){ die('Could not connect: ' . mysql_error());}

echo '<br/><center>';

if($Username)

{

            mysql_select_db($DBLName, $con);

if(exista($Username,"characters"))

{

                  mysql_select_db($DBName, $con);

if($SiteId > 0 && $SiteId <1+ count($SiteUrl))

{

i didnt test the update cuz i dont have a server but i dont see any reason why it wont work...

and if you need to different conection just make another one for the login and use it where the DBLName is used....

 

WAS It THIS HARD?....realy...

========1st post=========

Hi ppl!

 

Today i will share my vote reward system!

 

Some time ago i've seach mxc and other forums for some reward system but what i could find was the system with mass reward and one couind of similar to this one but a lot more complex, and i didn't like them!

 

SO i've made my own one ... all credits to me... notice:i didn't even look at that similar system:P

 

 

To use it you will need a php server

 

Lets Start:

 

1) download links:

Banking.java

votesystem.sql

verify.php

 

 

How To Install it:

 

1. copy verify.php to your root www folder

2.config verify.php:

  (Sorry i was to lazy to delete my configuration... but this will help to explain it easyer:P)

 

at the 1st lines of this fille you will see this...go one and modify it like i explain

 

$ServerName='AresKnights';

Replace AresKnights with your server name

 

$ReardName="AK Slver Coint";

Replace Ak Silver Coint with your reward name ...Gold Bar or whatever u use

 

 

for the next part be shore to use this layout 1=>'value1',2=>'Value2'....

You can put as many websites you want but make shore you don't make mistakes

 

$DelayTime=array(1=>43200,2=>43200,3=>43200,4=>(12*60*60));//in secons

 

is the delay between votes on that site in seconds ....for hopzone is 12h you can even yous somthing like this to make it easyer :4=>(12*60*60)

 

$rewarda-beep-t=array(1=>800,2=>200,3=>100,4=>900);

i wanted to give more reward for some links...and i have added this:)

 

 

$SiteUrl=array(1=>'http://l2.hopzone.net/vote.php?site=86781'

  ,2=>'http://l2topzone.com/vote.php?id=3409'

  ,3=>'http://www.gamesites200.com/lineage2/in.php?id=25341'

  ,4=>'http://www.l2gamesites.net/vote/455.html'

  );

 

Put the url's of your voting page...to get this click to vote for your server and before entering the cod for confirmation copy the url

 

$SiteName=array(1=>'Hopzone'

,2=>'TopZone'

,3=>'Gamesite200'

,4=>'l2gamesite'

);

Put a name for every vote page ...this name will be visible for players on the select box

 

Next data base and we are done!:P

 

$DBLoc='localhost';

$DBUser='root';

$DBPass='123123';

$DBName='l2jdb';

i don't think this needs more explication .

for security reason i recomand to make other user and replace root with that one and give right to that user only on votesystem and votesystemtime tables!

 

3) go to navicat open your data base  right click on it  and click on 'execute Batch File..' and open fotesystem.sql that you just download it.. click start and close the navicat:)

 

4)copy bank.java to your \gameserver\data\scripts\handlers\voicedcommandhandlers and replace the old one

 

5) configure the bank.java:

 

private int itemid = 3470;

replace the 3470 with your reward item id

 

activeChar.sendMessage("you have got "+(votecount)+" AK Silver Coints");

replace ak silver coints with your reward name....

 

activeChar.sendMessage("First go to aresknights.ucoz.com and vote!");

 

replace areskingts.ucoz.com with your server url(sorry abount my lazyness)

 

 

Notice: I have made this system for the last l2j revisions...for older packs you will not need to replace the bank.java ...you will need to make somthing similar by yourself:P

 

 

 

 

this is my second php scripts ...my 1st one was the top pvp/pk/online/rbstatus ..you can find them on mxc a GREAT FORUM!!!

 

All Credits to me (HardStyle) again and i'm waiting for feedback and i'm know that some things can be done better ...so please help me improve myself :D

 

 

I'm seaching for ways to get mac address of client using php cuz this system can be spam if the player changes his ip address (but how cares...you get the votes :P)

 

 

Edite: use .reward in game to get the reward:P

Posted

php? it isn't allowed on hopzone. thanks anyway.

 

i have seen similar systems on other servers  and i don't see any reason why hopzone won't allow this system and allow that mass reward... you don't force players to vote and its not a script that spams ore vote w/o user's aware...

Posted

hopzone become one big -.- so you must be friend of kadar to have such system, all others cya :)

dunno which vote site is still not corrupted :) gs200 - edit votes,topzone - owner dont even check sites, hopzone kadar do what he want... strange era of l2 voting :)

Posted

Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/960/virtual/www/subdom/milenium/verify.php:1) in /data/web/virtuals/960/virtual/www/subdom/milenium/verify.php on line 91

 

What am I doing wrong?

Posted

Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/960/virtual/www/subdom/milenium/verify.php:1) in /data/web/virtuals/960/virtual/www/subdom/milenium/verify.php on line 91

 

What am I doing wrong?

 

i don't see why you get this error ....the script is tested ....but still try this:

 

replace this:

header('Location:'.$SiteUrl[$SiteId]);

with:

echo '<SCRIPT LANGUAGE="javascript">window.location=\''.$SiteUrl[$SiteId].'\'</SCRIPT>';

 

 

i recomand to first check the:

$SiteUrl=array(1=>'http://l2.hopzone.net/vote.php?site=86781'

  ,2=>'http://l2topzone.com/vote.php?id=3409'

  ,3=>'http://www.gamesites200.com/lineage2/in.php?id=25341'

  ,4=>'http://www.l2gamesites.net/vote/455.html'

  );

 

to see if you write something wrong

Posted

Hello, i'm trying to insert this to Interlude server, but i'm having this error when i'm trying to compile. What's wrong here?

 

    [javac] C:\Users\DarkCore\Desktop\L2G\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\handler\voicedcommandhandlers\BankingCmd.java:91: cannot find symbol

    [javac] symbol  : method addItem(java.lang.String,int,long,com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance,<nulltype>)

    [javac] location: class com.l2jfrozen.gameserver.model.PcInventory

    [javac] activeChar.getInventory().addItem("Gold Bar", 3470, votecount, activeChar, null);

Posted

Hello, i'm trying to insert this to Interlude server, but i'm having this error when i'm trying to compile. What's wrong here?

 

please highlight in

activeChar.getInventory().addItem("Gold Bar", 3470, votecount, activeChar, null);p

where the little arrow points. i mean in what word or sth. i guess addItem?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Posts

    • @Mobius I only asked you one question! All your previous versions are sh*t and the last version is the best ? Because this is what you said.
    • Close that LOLserver. And change name to L2Wipe&Money.
    • Open Beta January 17th & 21:00 UTC +2 Launch Date January 24th & 21:00 UTC +2 Click Here to Explore Vanilla Gracia Final Low-Rate Server. Join our Discord Community     Following the success of our Vanilla project, we decided to launch it again as Last PlayINERA’s Server! Core Settings *Vanilla will have Strict Botting & Client Limitation Rules and Chronicle Progression from Gracia Final to Gracia Epilogue to H5 in Long term! XP: x4 SP: x4 Adena: x2 Drop: x2 Spoil: x3 Manor: x0.4 (60% reduction) - Festive sweeper enabled! Seal Stones: x2 Herbs: x1 Safe Enchant: +3 Maximum Enchant: Retail Enchant Rate: Dynamic General Settings Auto-loot Can be toggled Buffs Adventurer Guide buffs are free, retail level limit removed. Buff Slots: 20 (+ 4) Summon buffs will remain on re-summoning & on death while Noblesse blessing is applied! (Olympiad excluded) Pet buffs will be saved on relog but not during summon/unsummon. Event Buffer [NEW] Event Buffer is enabled and will spawn randomly between 18:00 ~ 23:00 in Giran for 10 minutes, it will apply Farm Only buffs that are cancelled in PvP, Siege / Epic PvP zones & while in a chaotic state! Duration: 1-hour! Territory Wars every two weeks on Saturday. Castle sieges every two weeks on Sunday Class Transfer 1st Class Transfer: Available for purchase with either Adena or iCoin 2nd Class Transfer: Available for purchase with either Adena or iCoin 3rd Class Transfer: Quest or iCoin (the 3rd class transfer will become available for purchase with iCoin as soon as someone has entered the Hall of Fame for completing the 3rd class transfer quest for the class in question) Hellbound Hellbound Lv. 0-6: ATOD x1 Hellbound Lv. 7-12: ATOD x2 Tiat & Ekimus will become available at Stage 12 Hellbound can only be leveled up by killing monsters. No quests or raids are needed To open Hellbound, a party must kill Baylor in the Crystal Caverns The following items are now tradable: Ancient Tome of the Demon  Hidden First Page  Hidden Second Page  Demon Contract Fragment INERA Hub Library Clan Recruitment System Options Services Milestone Rewards Earn rewards for reaching various daily/one-time goals Client Limit: 1 (+1 with Standard Premium) Shift + Click Information on Monsters SP are required to learn new skills Offline shops Lasts for 15 days Olympiad Olympiad period: 1st and 15th day of the month (14th & Last day of month is the last day) 3 Vs. 3 match disabled Class-based matches will be held over the weekends One registration per HWID (PC) Minimum participants: 9 Party Matching System Earn bonuses for finding a group via the Party Matching system Vote Reward System World Chat No limits for first day! Available from level 20 Raid Bosses Epic Raid Boss zones will turn into a PvP zone while the Epic Raid Boss is alive ( + means Random) Server will start with all grand raids dead. Normal Raids: 12h (+6 hours random). Subclass raids, respawn 12h (+6 hours random). Noblesse Barakiel 12h (+6 hours random, PvP zone). Anakim & Lilith are static 24 hours respawn. Queen Ant: 24 hours (+2 hours random). Core: 40 hours (+2 hours random). Orfen: 32 hours (+2 hours random). Antharas Respawn: 8 Days. Randomly spawns at 19:00 ~ 21:00 Boosted to level 83 on Hellbound stage 7. Valakas Respawn: 10 Days. Randomly spawns at 19:00 ~ 21:00 Baium Respawn: 5 Days. Randomly spawns at 21:00 ~ 23:00 Boosted to level 83 on Hellbound stage 7. Frintezza Respawn: 2 Days. Randomly spawns at 21:00 ~ 23:00 Instanced Zaken Zaken (Day): Monday, Wednesday, Friday at 6:30. Zaken (Day): 9 players, LvL 55-65, 1hr max. Zaken (Night): Wednesday at 6:30 Zaken (Night): 18-45 players, LvL 55-65, 6hr max. Tiat: Saturday at 6:30, 18-36 players, 2 hrs max. Boosted to level 85. Ekimus: 24h at 6:30, 18-27 players, 1hr max. Tully’s Workshop (Darion & Tully): 24h +-1h. Tower of Naia (Beleth): 5 days, 18 min. & 36 max.
  • Topics

×
×
  • Create New...