HostileStory v75
REMEMBER TO VOTE FOR US AT
http://www.gtop100.com/in.php?site=51773
http://www.gtop100.com/in.php?site=51773
http://www.gtop100.com/in.php?site=51773
http://www.gtop100.com/in.php?site=51773

Join the forum, it's quick and easy

HostileStory v75
REMEMBER TO VOTE FOR US AT
http://www.gtop100.com/in.php?site=51773
http://www.gtop100.com/in.php?site=51773
http://www.gtop100.com/in.php?site=51773
http://www.gtop100.com/in.php?site=51773
HostileStory v75
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Left's coder app (:

2 posters

Go down

Left's coder app (: Empty Left's coder app (:

Post  Left Sat Nov 20, 2010 10:20 pm

Name : Kathie

IGN (In Game Name) : Left

Age : 16

Gender : F

Location : Canada

Type of Coder : Java/JavaScripts and.. wz edit.

Global Time Zone : -5:00 gmt

Developing/Coding Experiences : Ran own server, coded for SO many servers, fix other peoples codes.. And I taught a friend to code (:

Any Example of your work :
Name changer
Code:
  1.
      var b = 0;
  2.
      function start() {
  3.
          cm.sendGetText("Would you like to change your name? If so, enter it below.");
  4.
      }
  5.
      function action(mode, type, selection) {
  6.
          if (mode < 1) {
  7.
              if (mode == 0 && b == 0)
  8.
                  cm.sendOk("Alright. Come back when you want to change your name");
  9.
              cm.dispose();
  10.
          }else {
  11.
              var name = cm.getText()
  12.
              if(cm.isNameLegal(name) && b == 0) {
  13.
                  b++;
  14.
                  cm.sendYesNo("Are you sure you want to change your name to #r"+name+"#k?");
  15.
              } else if (cm.isNameLegal(name) && b == 1) {
  16.
                  cm.changeName(name);
  17.
                  cm.dispose();
  18.
              }else {
  19.
                  cm.sendOk("This name is already taken or it is an illegal name.");
  20.
              cm.dispose();
  21.
          }}
  22.
      }

Starter pack
Code:

#
var itemstogive = Array(4000313, 4000313, 4000313, 4000313);
#
var amount = Array(1, 1, 100, 100);
#
function start() {
#
    cm.sendOk("Heres a starter pack");
#
}
#
function action(mode, type, selection) {
#
    if (mode == 1) {
#
        for (var i = 0; i <itemstogive.length; i++)
#
            cm.gainItem(itemstogive[i], amount[i]);
#
        cm.warp(910000000);
#
    }
#
    cm.dispose()
Item editing npc :
Code:
1.
      var status = -1;
  2.
      var selected;
  3.
      var idk;
  4.
      var pe =Array("Dex", "Str", "Int", "Luk", "Wep Attack", "Mag Attack");
  5.
      var d = false;
  6.
      var equip;
  7.
      var dex;
  8.
      var str;
  9.
      var iint;
  10.
      var luk;
  11.
      var wa;
  12.
      var ma;
  13.
      var a = false;
  14.
      function start() {
  15.
          cm.sendNext("Since everyone is a GM here, I'm the GM equipment creator. :)");
  16.
      }
  17.
      function action(mode, type, selection) {
  18.
          if (mode < 1)
  19.
              cm.dispose();
  20.
          else {
  21.
              if (mode == 1 && status != 3)
  22.
                  status++;
  23.
              if (status == 0)
  24.
                  cm.sendSimple("What item in your inventory would you like to edit?\r\n" + cm.EquipList(cm.getC()));
  25.
              else if (status == 1) {       
  26.
                  if (d == false) {
  27.
                  equip = cm.getEquip(selection);
  28.
                  dex = equip.getDex();
  29.
                  str = equip.getStr();
  30.
                  iint = equip.getInt();
  31.
                  luk = equip.getLuk();
  32.
                  wa = equip.getWatk();
  33.
                  ma = equip.getMatk();
  34.
                  selected = selection;
  35.
                  d = true;
  36.
              }
  37.
                  cm.sendSimple("What would you like to edit on your #b#t"+cm.getItemID(selected)+"#? #k:)" +
  38.
                  "\r\n#L0##gDexterity                  #k-          #e("+dex+")#l" +
  39.
                  "\r\n#n#b#L1#Strength                  #k-          #e("+str+")#l" +
  40.
                  "\r\n#n#r#L2#Intelligence            #k-          #e("+iint+")#l" +
  41.
                  "\r\n#n#d#L3#Luck                        #k-          #e("+luk+")#l" +
  42.
                  "\r\n#g#L4#Weapon Attack    #k-          #e("+wa+")#l" +
  43.
                  "\r\n#r#L5#Magic Attack        #k-          #e("+ma+")#l" +
  44.
                  "\r\n\r\n#k#L6#Create item!#l");
  45.
     
  46.
              }
  47.
              else if (status == 2){
  48.
                  if (selection == 6) {
  49.
                      cm.gainEpicItem(selected, cm.getChar(), str, dex, iint, luk, wa, ma);
  50.
                      cm.sendOk("Done! Relog or change channels to view the new edited item.");
  51.
                      cm.dispose();
  52.
                      return;
  53.
                  }
  54.
                      else {
  55.
                          if (a == false) {
  56.
                          idk = selection;
  57.
                          cm.sendGetText("What would you like to change your "+pe[selection]+" to?");
  58.
                          a = true;
  59.
                          } else
  60.
                              cm.sendGetText("What would you like to change your "+pe[idk]+" to?");
  61.
               
  62.
                      }
  63.
                  }else if (status == 3) {
  64.
               
  65.
                          var amount = parseInt(cm.getText());
  66.
                          if (amount < 0 || amount > 32767)
  67.
                              cm.sendOk("Please enter a number between 0 and 32767.");
  68.
                          else if (isNaN(amount))
  69.
                              cm.sendOk("Please enter a real number.");
  70.
                          else {
  71.
                              cm.sendOk("Done. Make any other changes you like :)");
  72.
                              switch(idk) {
  73.
                                  case 0: dex = amount; break;
  74.
                                  case 1: str = amount; break;
  75.
                                  case 2: iint = amount; break;
  76.
                                  case 3: luk = amount; break;
  77.
                                  case 4: wa = amount; break;
  78.
                                  case 5: ma = amount; break; 
  79.
                              }status--;
  80.
                              a = false;
  81.
                          }
  82.
                      status--;
  83.
                      status--;
  84.
                      }
  85.
              }
  86.
          }

Reason/Purpose : Like to code, SO many ideas.. I guess.

Why should we choose you? :
I can code, I'm active to the point that it's not healthy... I'm nice :U

Additional Details :
Naked pigs are best pigs.
I had all the codes posted on pastebin, so when I copypasted the numbers showed up.. bah.

Left

Posts : 3
Join date : 2010-11-20

Back to top Go down

Left's coder app (: Empty Re: Left's coder app (:

Post  Right Sat Nov 20, 2010 10:23 pm

IT'S THE BEST SO FAR.

Right

Posts : 13
Join date : 2010-11-20

Back to top Go down

Left's coder app (: Empty Re: Left's coder app (:

Post  Dieg0<3 Fri Nov 26, 2010 1:51 am

Good Job Left... Very good App Laughing
Anonymous
Dieg0<3
Guest


Back to top Go down

Left's coder app (: Empty Re: Left's coder app (:

Post  zzzzzzzz Fri Dec 17, 2010 9:13 am

hi, nice app, can you code for my server? thx
Anonymous
zzzzzzzz
Guest


Back to top Go down

Left's coder app (: Empty Re: Left's coder app (:

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum