Thread: Autovote - Motivote - Server and Web tutorial

Page 6 of 13 FirstFirst ... 45678 ... LastLast
Results 51 to 60 of 121
  1. #51  
    ???

    funkE's Avatar
    Join Date
    Feb 2008
    Posts
    2,612
    Thanks given
    255
    Thanks received
    989
    Rep Power
    1366
    Make sure you call reward.complete();

    otherwise, i can't see why that would happen.
    .
    Reply With Quote  
     

  2. #52  
    Donator

    Join Date
    May 2012
    Posts
    84
    Thanks given
    35
    Thanks received
    11
    Rep Power
    61
    I have it called in the code here:

    Code:
    package server.mysql;
    
    import com.rspserver.motivote.MotivoteHandler;
    import com.rspserver.motivote.Vote;
    
    import server.model.mobile.players.Client;
    import server.model.mobile.players.Player;
    import server.model.mobile.players.PlayerHandler;
    
    public class RewardHandler extends MotivoteHandler<Vote> {
    
    	public void onCompletion(Vote reward) {
    		
    		int itemID = 995;
    		int itemAmount = 2500000;
    		
    		if (PlayerHandler.isPlayerOn(reward.username())) {
    			Player p = PlayerHandler.getPlayer(reward.username());
    			if (p != null && p.isActive == true) {
    				synchronized(p){
    					Client c = (Client)p;
    					if (c.getItems().addItem(itemID, itemAmount)) {
    						c.sendMessage("You've received your vote reward! Congratulations!");
    						c.votePoints += 1;
    						c.sendMessage("You have recived 1 voting point. You now have "+ c.votePoints +".");
    						reward.complete();
    					}
    					else
    					{
    						c.sendMessage("Could not give you your reward item, try creating space.");
    					}
    				}
    			}
    		}
    	}
    }
    Mine looks different from yours but the person I had install it for me apparently didn't follow is tutorial. Any help on why this is happening would be appreciated.
    [SIGPIC][/SIGPIC]
    Reply With Quote  
     

  3. #53  
    ???

    funkE's Avatar
    Join Date
    Feb 2008
    Posts
    2,612
    Thanks given
    255
    Thanks received
    989
    Rep Power
    1366
    yeah, you are receiving 1 reward per 1 vote
    .
    Reply With Quote  
     

  4. #54  
    Donator

    Join Date
    May 2012
    Posts
    84
    Thanks given
    35
    Thanks received
    11
    Rep Power
    61
    My players are getting credited for 3 votes for some reason?
    [SIGPIC][/SIGPIC]
    Reply With Quote  
     

  5. #55  
    ???

    funkE's Avatar
    Join Date
    Feb 2008
    Posts
    2,612
    Thanks given
    255
    Thanks received
    989
    Rep Power
    1366
    Quote Originally Posted by BendUOverMyKnee View Post
    My players are getting credited for 3 votes for some reason?
    if you have 3 total toplists to vote on, I can see why that is happening. otherwise, I don't know.
    .
    Reply With Quote  
     

  6. Thankful user:


  7. #56  
    Donator

    Join Date
    May 2012
    Posts
    84
    Thanks given
    35
    Thanks received
    11
    Rep Power
    61
    Quote Originally Posted by Supah Fly View Post
    if you have 3 total toplists to vote on, I can see why that is happening. otherwise, I don't know.
    I believe I have 3 so I can understand why that is happening now. I never thought of it that way. Thanks
    [SIGPIC][/SIGPIC]
    Reply With Quote  
     

  8. #57  
    ???

    funkE's Avatar
    Join Date
    Feb 2008
    Posts
    2,612
    Thanks given
    255
    Thanks received
    989
    Rep Power
    1366
    I have released version 1.3. Various bug fixes have been done. This only applies to the website side of things.

    https://github.com/SuprahFry/Motivote/releases

    This will be the only time you will have to do a fresh install. Make sure if you edited the default template, rename the folder and make sure it's not default or it will be overwritten.

    Thanks.
    .
    Reply With Quote  
     

  9. #58  
    Registered Member
    Join Date
    Dec 2014
    Posts
    44
    Thanks given
    1
    Thanks received
    3
    Rep Power
    11
    very very nice system, also the developer is very helpful, would recommend to anyone
    Reply With Quote  
     

  10. #59  
    ???

    funkE's Avatar
    Join Date
    Feb 2008
    Posts
    2,612
    Thanks given
    255
    Thanks received
    989
    Rep Power
    1366
    Working on installer. Current progress:
    .
    Reply With Quote  
     

  11. #60  
    ???

    funkE's Avatar
    Join Date
    Feb 2008
    Posts
    2,612
    Thanks given
    255
    Thanks received
    989
    Rep Power
    1366
    An installer has now been added, you will have to download a new copy of Motivote. Erase your old copy and upload this new one if you need the installer.

    https://github.com/SuprahFry/Motivote/releases
    .
    Reply With Quote  
     

Page 6 of 13 FirstFirst ... 45678 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. An advertiser, server developer and web developer
    By 'Mystic Flow in forum Requests
    Replies: 10
    Last Post: 01-19-2012, 06:14 PM
  2. EQ Hosting [DEDI, Game Servers, Voice, and Web]
    By beastro man in forum Hosting
    Replies: 2
    Last Post: 12-19-2011, 07:50 AM
  3. Need server and web coder
    By Kissy in forum Requests
    Replies: 0
    Last Post: 12-06-2011, 03:00 PM
  4. Replies: 2
    Last Post: 08-15-2011, 03:11 AM
  5. Replies: 12
    Last Post: 02-16-2010, 05:01 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •