How to add a custom reward/voting system. (NON TIMED)

Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 49
  1. #31
    Enthusiast KraziiStory is offline
    MemberRank
    Dec 2009 Join Date
    37Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    *Uber bump* What version is this for?

  2. #32
    Apprentice crazypinguin is offline
    MemberRank
    Aug 2009 Join Date
    20Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    can someone please help.. i have this error, it says colum votingpoints not found, (in bat). please help?

  3. #33
    Apprentice YPMagic is offline
    MemberRank
    May 2010 Join Date
    24Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    thanks :)
    i luv it.

  4. #34
    Enthusiast evia95 is offline
    MemberRank
    Feb 2009 Join Date
    40Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    I done a voting system like this.
    but for what I remember is that I did somewhere that
    if (votepoints > 32767) {
    votepoints = 32767;
    }
    Because I dont think "int" can take a number that is bigger than 32767.

  5. #35
    Apprentice YPMagic is offline
    MemberRank
    May 2010 Join Date
    24Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    by the way, i tried to do trade a vote point for 2k NX npc, but it always doesn't find setvotingpoints. i did over and over :(

  6. #36
    Account Upgraded | Title Enabled! Joakim432710 is offline
    MemberRank
    Oct 2008 Join Date
    222Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    Had to bump this lovely old thread, however.
    Quote Originally Posted by evia95 View Post
    I done a voting system like this.
    but for what I remember is that I did somewhere that
    if (votepoints > 32767) {
    votepoints = 32767;
    }
    Because I dont think "int" can take a number that is bigger than 32767.
    is true, but if you wish to grant them more vote points than 1 per vote, use the LONGINT or longinteger one, it takes what you know to be 2147483647 mesos, however if that is not enough. Use a system similar to this
    if (cm.votepoints > 32767) && (cm.votepoints == 32768) {
    cm.votepoints = 32767;
    cm.gainvotepoints2(1);
    } else {
    cm.votepoints2 = cm.votepoints -5000;
    }

    where 5000 could be a few times multiplied by the amount you gain each vote. I made a few mistakes there, but I'm really tired.
    Also consider use of bigint and biginteger, which are also merely the same.

  7. #37
    Enthusiast ElementalMS is offline
    MemberRank
    Oct 2010 Join Date
    35Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    Got stucked at
    NPCConversationManager

    This is the compile problome
    I did everything like the guide
    Please answer me :(
    The project name is ElementalPoints


    init:
    Deleting: C:\Users\CHAYON\Documents\NetBeansProjects\XiuzSource\build\built-jar.properties
    deps-jar:
    Updating property file: C:\Users\CHAYON\Documents\NetBeansProjects\XiuzSource\build\built-jar.properties
    Compiling 1 source file to C:\Users\CHAYON\Documents\NetBeansProjects\XiuzSource\build\classes
    C:\Users\CHAYON\Desktop\ElementalMS\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:158: cannot find symbol
    symbol : method getelementalpoints()
    location: class net.sf.odinms.client.MapleCharacter
    return getPlayer().getelementalpoints();
    C:\Users\CHAYON\Desktop\ElementalMS\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:162: cannot find symbol
    symbol : method setelementalpoints(int)
    location: class net.sf.odinms.client.MapleCharacter
    getPlayer().setelementalpoints(newpoints);
    C:\Users\CHAYON\Desktop\ElementalMS\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:166: cannot find symbol
    symbol : method gain1elementalpoint()
    location: class net.sf.odinms.client.MapleCharacter
    getPlayer().gain1elementalpoint();
    C:\Users\CHAYON\Desktop\ElementalMS\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:170: cannot find symbol
    symbol : method gainelementalpoints(int)
    location: class net.sf.odinms.client.MapleCharacter
    getPlayer().gainelementalpoints(gainedpoints);
    C:\Users\CHAYON\Desktop\ElementalMS\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:171: saveToDB(boolean,boolean) in net.sf.odinms.client.MapleCharacter cannot be applied to (boolean)
    chr.saveToDB(true);
    C:\Users\CHAYON\Desktop\ElementalMS\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:173: cannot find symbol
    symbol : method message(java.lang.String)
    location: class net.sf.odinms.client.MapleCharacter
    getPlayer().message("Hi " + getPlayer().getName() + ",");
    C:\Users\CHAYON\Desktop\ElementalMS\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:174: cannot find symbol
    symbol : method message(java.lang.String)
    location: class net.sf.odinms.client.MapleCharacter
    getPlayer().message("You have achieved : " + gainedpoints + " ElementalPoint(s),");
    C:\Users\CHAYON\Desktop\ElementalMS\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:175: cannot find symbol
    symbol : method getelementalpoints()
    location: class net.sf.odinms.client.MapleCharacter
    getPlayer().message("Which brings you to a total of : " + getPlayer().getelementalpoints() + " ElementalPoints~");
    C:\Users\CHAYON\Desktop\ElementalMS\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:175: cannot find symbol
    symbol : method message(java.lang.String)
    location: class net.sf.odinms.client.MapleCharacter
    getPlayer().message("Which brings you to a total of : " + getPlayer().getelementalpoints() + " ElementalPoints~");
    C:\Users\CHAYON\Desktop\ElementalMS\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:178: cannot find symbol
    symbol : method message(java.lang.String)
    location: class net.sf.odinms.client.MapleCharacter
    getPlayer().message("Hi " + getPlayer().getName() + ",");
    C:\Users\CHAYON\Desktop\ElementalMS\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:179: cannot find symbol
    symbol : method message(java.lang.String)
    location: class net.sf.odinms.client.MapleCharacter
    getPlayer().message("You have lost : " + gainedpoints + " ElementalPoints,");
    C:\Users\CHAYON\Desktop\ElementalMS\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:180: cannot find symbol
    symbol : method getelementalpoints()
    location: class net.sf.odinms.client.MapleCharacter
    getPlayer().message("Which brings you to a total of : " + getPlayer().getelementalpoints() + " ElementalPoints~");
    C:\Users\CHAYON\Desktop\ElementalMS\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:180: cannot find symbol
    symbol : method message(java.lang.String)
    location: class net.sf.odinms.client.MapleCharacter
    getPlayer().message("Which brings you to a total of : " + getPlayer().getelementalpoints() + " ElementalPoints~");
    13 errors
    C:\Users\CHAYON\Documents\NetBeansProjects\XiuzSource\nbproject\build-impl.xml:521: The following error occurred while executing this line:
    C:\Users\CHAYON\Documents\NetBeansProjects\XiuzSource\nbproject\build-impl.xml:258: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 0 seconds)
    Last edited by ElementalMS; 23-10-10 at 08:25 PM.

  8. #38
    Member loolzzzz is offline
    MemberRank
    Feb 2011 Join Date
    SwedenLocation
    54Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    Wait How do i get players to get vote points? How do i add a Site so they write in their Accounts and pass and they get vote points for acctualy voting? plz help i'm new at this...

  9. #39
    Member Objection is offline
    MemberRank
    Dec 2010 Join Date
    71Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    Nice deagan :) thanks a lot for this its going to be useful .

  10. #40
    Account Upgraded | Title Enabled! oxysoft is offline
    MemberRank
    Nov 2008 Join Date
    Canada, QCLocation
    1,400Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    I get no error in netbean but when i try my script, the npc say what it should say if i didn't had any beta points, but i have that point.

    here my npc script:

    PHP Code:
    var status;

    function 
    start() {
        
    status = -1;
        
    action(100);
    }

    function 
    action(mode,type,selection) {
        if (
    mode == 1) {
            
    status++;
        } else {
            
    cm.dispose();
            return;
        }
        if (
    status == 0) {
            
    cm.sendSimple("DUH HERRRRO! I am the Beta point exchanger and i have only one option. If you played the Beta, you will have one of those funky points. If you got one of those point by participating, you can get a Mark of the Beta + a trophy, which will be used in a future trader.: \r\n#L0# OK GIMI.#l");
        } else if (
    status == 1) {
            if (
    selection == 0) {
                if (
    cm.getPlayer().getbeta() >= 0) {
                    
    cm.getPlayer().gainbeta(-1);      
                    
    cm.gainItem(10024191);
                    
    cm.gainItem(40000381);
                    
    cm.sendOk("HERE YA GO <3 VOTE MORE KTHXBAI.");
                } else {
                    
    cm.sendOk("TSSKKK u didnt play beta :(");
                } 
               
            }
        
    cm.dispose();
        }


  11. #41
    Enthusiast ItzTechno is offline
    MemberRank
    Mar 2011 Join Date
    RavesLocation
    43Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    i'm kind of a noob, is there any easier way to do this?

  12. #42
    Proficient Member Xuraz is offline
    MemberRank
    Apr 2011 Join Date
    SwedenLocation
    177Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    I love you Deagan! :D *not gay*

  13. #43
    Valued Member aikg2k3 is offline
    MemberRank
    Apr 2011 Join Date
    112Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    Wow did someone really infract him for adding code to this thread? Smh.

    Great guide, thanks a lot. I'm about to try this out.

  14. #44
    Member iChinitoBoi is offline
    MemberRank
    Jan 2010 Join Date
    RaGEZONELocation
    97Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    Bump..

    Can someone tell my why it is saying I don't have eventpoints column when I clearly see it right there.

  15. #45
    Member omerdn1 is offline
    MemberRank
    Apr 2009 Join Date
    55Posts

    Re: How to add a custom reward/voting system. (NON TIMED)

    nice release



Page 3 of 4 FirstFirst 1234 LastLast

Advertisement