ScarfaceMS
Please login or register to enjoy the full features and benefits of the forum. Also when you are logged in you will have reduced AD's and much more. So what are you waiting for! Not a member? Register now! Already a member? Just simply log in! Thank You Smile ~
-Tony And 2nd Owner Legend<3!
ScarfaceMS
Please login or register to enjoy the full features and benefits of the forum. Also when you are logged in you will have reduced AD's and much more. So what are you waiting for! Not a member? Register now! Already a member? Just simply log in! Thank You Smile ~
-Tony And 2nd Owner Legend<3!
ScarfaceMS
Would you like to react to this message? Create an account in a few clicks or log in to continue.

ScarfaceMS

Maplestory v75 Private Server
 
HomePortalGalleryLatest imagesSearchRegisterLog in
Please vote for our server on all links inorder to have a better and bigger community!

 

 MUST! Working GM equipment creator!

Go down 
3 posters
AuthorMessage
NoobieGuy
Moderator
Moderator
NoobieGuy


Posts : 54
Join date : 2010-06-24
Age : 28
Location : California

MUST! Working GM equipment creator! Empty
PostSubject: MUST! Working GM equipment creator!   MUST! Working GM equipment creator! EmptyMon Jun 28, 2010 4:04 pm

Um i have a link and code so basically, it will edit an item, its str boost luk boost wep atk, everything that you would have to edit my mysql or spend hours scrolling, for gm's would also be great for donators!

You an download the script HERE or copy the code,
BW the download is 9201052.js, so you donwload it place it in your npc scripts folder, it will override Professor Foxwit's script, he isnt being used, also you could just pick an npc, replace with the code...


All credits to EternalFire
Code:
/*
  GM Custom Equipment Creator
  Author: ElternalFire
*/

importPackage(java.util);
importPackage(net.sf.odinms.client);
importPackage(net.sf.odinms.server);
importPackage(net.sf.odinms.tools);

importPackage(net.sf.odinms.server.maps);

var equip = null;
var change = null;
var ii = MapleItemInformationProvider.getInstance();

var statNames = new Array("STR", "DEX", "INT", "LUK", "HP", "MP", "Weapon attack",
   "Magic attack", "Weapon defense", "Magic defense", "Accuracy", "Avoidability", "Speed", "Jump", "Slots to Upgrade", "Own");

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

function action(mode, type, selection) {
   if (mode == -1) {
      cm.dispose();
   } else {
      if ((status == 1 || status == 3 || status == 4) && mode == 0) {
         cm.dispose();
         return;
      }
   
      if (mode == 1)
         status++;
      else if (mode == 0)
         status--;
         
      if (status == 0) {
         if (cm.getChar().gmLevel() > 0) {
            cm.sendYesNo("Welcome #b[GM] #h ##k! Can i do something for you ?");
         }
      }if (status == 1) {
         cm.sendGetNumber("Enter the equip ID.", 1000000, 1000000, 1999999);
      } else if (status == 2) {
         // This is a bit slow
         var items = ii.getAllItems().toArray();
         for (var i = 0; i < items.length; i++) {
            if (items[i].getLeft() == selection) {
               equip = ii.getEquipById(selection);
               cm.sendYesNo("Do you want to create #b#z" + selection + "##k?");
               return;
            }
         }
         
         cm.sendPrev("The item you are trying to create does not exist.");
      } else if (status == 3) {
         var s = "You are creating: #b#z" + equip.getItemId() + "##k.\r\nSelect a stat to change it.\r\n";
         for (var i = 0; i < 16; i++) {
            s += "#L" + i + "##b" + statNames[i] + ": " + getEquipStat(i) + "#k#l\r\n";
         }
         
         s += "\r\n#L16##bCreate the equipment#k#l";
         cm.sendSimple(s);
      } else if (status == 4) {
         if (selection == 16) {
            var newSlot = cm.getChar().getInventory(MapleInventoryType.EQUIP).addItem(equip);
            if (newSlot == -1) {
               cm.sendOk("Please make sure your equipment inventory is not full.");
               cm.dispose();
               return;
            }
            cm.getChar().getClient().getSession().write(MaplePacketCreator.addInventorySlot(MapleInventoryType.EQUIP, equip));
            cm.sendOk("Have fun with your new #b#t" + equip.getItemId() + "##k!");
            cm.dispose();
         } else {
            change = selection;
            if (selection == 15) {
               cm.sendGetText("Enter the new value for #bowner#k.");
               return;
            }
            
            var def = getEquipStat(selection);
            cm.sendGetNumber("Enter the new value for #b" + statNames[selection] + "#k.", def, 0, 32767);
         }
      } else if (status == 5) {
         setEquipStat(change, selection);
         status = 3;
         action(2, 0, 0);
      }
   }

function getEquipStat(i) {
   switch (i) {
      case 0: return equip.getStr();
      case 1: return equip.getDex();
      case 2: return equip.getInt();
      case 3: return equip.getLuk();
      case 4: return equip.getHp();
      case 5: return equip.getMp();
      case 6: return equip.getWatk();
      case 7: return equip.getMatk();
      case 8: return equip.getWdef();
      case 9: return equip.getMdef();
      case 10: return equip.getAcc();
      case 11: return equip.getAvoid();
      case 12: return equip.getSpeed();
      case 13: return equip.getJump();
      case 14: return equip.getUpgradeSlots();
      case 15: return equip.getOwner() == "" ? "(none)" : equip.getOwner();;
   }
}

function setEquipStat(i, v) {
   switch (i) {
      case 0: equip.setStr(v); break;
      case 1: equip.setDex(v); break;
      case 2: equip.setInt(v); break;
      case 3: equip.setLuk(v); break;
      case 4: equip.setHp(v); break;
      case 5: equip.setMp(v); break;
      case 6: equip.setWatk(v); break;
      case 7: equip.setMatk(v); break;
      case 8: equip.setWdef(v); break;
      case 9: equip.setMdef(v); break;
      case 10: equip.setAcc(v); break;
      case 11: equip.setAvoid(v); break;
      case 12: equip.setSpeed(v); break;
      case 13: equip.setJump(v); break;
      case 14: equip.setUpgradeSlots(v); break;
      case 15: equip.setOwner(cm.getText()); break;
   }
}
}
Back to top Go down
Legend
Member +
Member +
Legend


Posts : 175
Join date : 2010-06-25
Age : 31
Location : Maryland; Baltimore

MUST! Working GM equipment creator! Empty
PostSubject: Re: MUST! Working GM equipment creator!   MUST! Working GM equipment creator! EmptyMon Jun 28, 2010 4:26 pm

Really Dumb. -_- GM's can Just do !proitem [ID] [Stats] Duuuuh?
Back to top Go down
http://packetstormsecurity.org
NoobieGuy
Moderator
Moderator
NoobieGuy


Posts : 54
Join date : 2010-06-24
Age : 28
Location : California

MUST! Working GM equipment creator! Empty
PostSubject: Re: MUST! Working GM equipment creator!   MUST! Working GM equipment creator! EmptyMon Jun 28, 2010 5:04 pm

It would be for donators script didnt work anyways
Back to top Go down
Bullet
Newbie
Newbie



Posts : 19
Join date : 2010-06-30

MUST! Working GM equipment creator! Empty
PostSubject: Re: MUST! Working GM equipment creator!   MUST! Working GM equipment creator! EmptyWed Jun 30, 2010 5:45 pm

Noobie, go on MSN.
Back to top Go down
Sponsored content





MUST! Working GM equipment creator! Empty
PostSubject: Re: MUST! Working GM equipment creator!   MUST! Working GM equipment creator! Empty

Back to top Go down
 
MUST! Working GM equipment creator!
Back to top 
Page 1 of 1
 Similar topics
-
» WORKING SELLING TIMELESS SHIT.

Permissions in this forum:You cannot reply to topics in this forum
ScarfaceMS :: Extras :: Releases-
Jump to: