Thread: adding a starter.

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1 adding a starter. 
    Registered Member
    Join Date
    Jul 2009
    Posts
    172
    Thanks given
    0
    Thanks received
    0
    Rep Power
    41
    probably one of the most easiest things to do, but i haven't coded in a long time. can someone give me the :tarter command? i put this in
    if ((command.startsWith("starter")) && (p.playerRights > 1)) {
    int amount = 10000;
    for (int i = 995; i < 995; i++) {
    p.addItem(i, amount);
    }
    and when i make a new guy that isn't admin or mod and do :tarter nothing happens? can somebody help me
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Apr 2008
    Posts
    1,077
    Thanks given
    106
    Thanks received
    39
    Rep Power
    0
    if ((command.startsWith("starter")) && (p.playerRights > 0)) {
    int amount = 10000;
    for (int i = 995; i < 995; i++) {
    p.addItem(i, amount);
    }
    Der.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2009
    Posts
    172
    Thanks given
    0
    Thanks received
    0
    Rep Power
    41
    nah thats not it. it compiles fine and when i type :tarter nothing happens, all you did was change the > 1)) to a > 0)) right?
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Jul 2008
    Age
    24
    Posts
    284
    Thanks given
    6
    Thanks received
    9
    Rep Power
    104
    Code:
    if ((command.startsWith("starter")) && (p.playerRights > 1)) {
    if(starter=0) {
    p.additem(995, (amt here))
    starter++
    } else {
    SM("You have already used your starter");
    }
    then in your playersave add

    starter=0;


    note:this is just a base and needs editing, not going to do it all for you
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jul 2009
    Posts
    172
    Thanks given
    0
    Thanks received
    0
    Rep Power
    41
    could you just give me the code for a starter? cause i just realized somebody could do :tarter over and over...
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jul 2009
    Posts
    172
    Thanks given
    0
    Thanks received
    0
    Rep Power
    41
    that did work i got this error
    Compiling GameEngine
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: ')' expected
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: ';' expected
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:42: ';' expected
    starter++
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:40: cannot find symbol

    symbol : variable starter
    location: class com.iClarity.player.packetHandler.Packets.Commands
    if(starter=0) {
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: cannot find symbol

    symbol : class amt
    location: class com.iClarity.player.packetHandler.Packets.Commands
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: cannot find symbol

    symbol : variable here
    location: class com.iClarity.player.packetHandler.Packets.Commands
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:42: cannot find symbol

    symbol : variable starter
    location: class com.iClarity.player.packetHandler.Packets.Commands
    starter++
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:44: cannot find symbol

    symbol : method SM(java.lang.String)
    location: class com.iClarity.player.packetHandler.Packets.Commands
    SM("You have already used your starter");
    ^
    8 errors
    Compiling com.iClarity.event
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: ')' expected
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: ';' expected
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:42: ';' expected
    starter++
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:40: cannot find symbol

    symbol : variable starter
    location: class com.iClarity.player.packetHandler.Packets.Commands
    if(starter=0) {
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: cannot find symbol

    symbol : class amt
    location: class com.iClarity.player.packetHandler.Packets.Commands
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: cannot find symbol

    symbol : variable here
    location: class com.iClarity.player.packetHandler.Packets.Commands
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:42: cannot find symbol

    symbol : variable starter
    location: class com.iClarity.player.packetHandler.Packets.Commands
    starter++
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:44: cannot find symbol

    symbol : method SM(java.lang.String)
    location: class com.iClarity.player.packetHandler.Packets.Commands
    SM("You have already used your starter");
    ^
    8 errors
    Compiling com.iClarity.misc
    Compiling com.iClarity.npcs
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: ')' expected
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: ';' expected
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:42: ';' expected
    starter++
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:40: cannot find symbol

    symbol : variable starter
    location: class com.iClarity.player.packetHandler.Packets.Commands
    if(starter=0) {
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: cannot find symbol

    symbol : class amt
    location: class com.iClarity.player.packetHandler.Packets.Commands
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: cannot find symbol

    symbol : variable here
    location: class com.iClarity.player.packetHandler.Packets.Commands
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:42: cannot find symbol

    symbol : variable starter
    location: class com.iClarity.player.packetHandler.Packets.Commands
    starter++
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:44: cannot find symbol

    symbol : method SM(java.lang.String)
    location: class com.iClarity.player.packetHandler.Packets.Commands
    SM("You have already used your starter");
    ^
    8 errors
    Compiling com.iClarity.npcs.Combat
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: ')' expected
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: ';' expected
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:42: ';' expected
    starter++
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:40: cannot find symbol

    symbol : variable starter
    location: class com.iClarity.player.packetHandler.Packets.Commands
    if(starter=0) {
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: cannot find symbol

    symbol : class amt
    location: class com.iClarity.player.packetHandler.Packets.Commands
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: cannot find symbol

    symbol : variable here
    location: class com.iClarity.player.packetHandler.Packets.Commands
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:42: cannot find symbol

    symbol : variable starter
    location: class com.iClarity.player.packetHandler.Packets.Commands
    starter++
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:44: cannot find symbol

    symbol : method SM(java.lang.String)
    location: class com.iClarity.player.packetHandler.Packets.Commands
    SM("You have already used your starter");
    ^
    8 errors
    Compiling com.iClarity.player
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: ')' expected
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: ';' expected
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:42: ';' expected
    starter++
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:40: cannot find symbol

    symbol : variable starter
    location: class com.iClarity.player.packetHandler.Packets.Commands
    if(starter=0) {
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: cannot find symbol

    symbol : class amt
    location: class com.iClarity.player.packetHandler.Packets.Commands
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: cannot find symbol

    symbol : variable here
    location: class com.iClarity.player.packetHandler.Packets.Commands
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:42: cannot find symbol

    symbol : variable starter
    location: class com.iClarity.player.packetHandler.Packets.Commands
    starter++
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:44: cannot find symbol

    symbol : method SM(java.lang.String)
    location: class com.iClarity.player.packetHandler.Packets.Commands
    SM("You have already used your starter");
    ^
    8 errors
    Compiling com.iClarity.player.combat
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: ')' expected
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: ';' expected
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:42: ';' expected
    starter++
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:40: cannot find symbol

    symbol : variable starter
    location: class com.iClarity.player.packetHandler.Packets.Commands
    if(starter=0) {
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: cannot find symbol

    symbol : class amt
    location: class com.iClarity.player.packetHandler.Packets.Commands
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:41: cannot find symbol

    symbol : variable here
    location: class com.iClarity.player.packetHandler.Packets.Commands
    p.additem(995, (amt here))
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:42: cannot find symbol

    symbol : variable starter
    location: class com.iClarity.player.packetHandler.Packets.Commands
    starter++
    ^
    .\com\iClarity\player\packetHandler\Packets\Comman ds.java:44: cannot find symbol

    symbol : method SM(java.lang.String)
    location: class com.iClarity.player.packetHandler.Packets.Commands
    SM("You have already used your starter");
    ^
    8 errors
    Compiling com.iClarity.player.Skills
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jul 2009
    Posts
    172
    Thanks given
    0
    Thanks received
    0
    Rep Power
    41
    oh wow i forgot to change amt here but i still get 6 errors
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Apr 2009
    Posts
    568
    Thanks given
    2
    Thanks received
    10
    Rep Power
    0
    just make it so when they log in for the first time the items already appear in the inventory like every other server..???
    Reply With Quote  
     

  9. #9  
    Fuck yeah!
    Mergim's Avatar
    Join Date
    May 2009
    Age
    26
    Posts
    2,309
    Thanks given
    218
    Thanks received
    186
    Rep Power
    1619
    if(command.startsWith("starter")) { ?
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Jul 2009
    Posts
    172
    Thanks given
    0
    Thanks received
    0
    Rep Power
    41
    good idea, but then again i have no clue how to do that when you log in you have nothing so there is nothing to go by, & i would have no clue where to put the code at
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •