ToastyMS Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

ToastyMS Forums

Welcome to the ToastyMS Forums
 
HomeLatest imagesSearchRegisterLog in

 

 coding thingy

Go down 
+2
wahkien
hellzxfire
6 posters
AuthorMessage
hellzxfire
Normal Member
hellzxfire


Posts : 82
Join date : 2008-11-02
Location : on earth

coding thingy Empty
PostSubject: coding thingy   coding thingy Icon_minitimeWed Jan 07, 2009 1:55 am

im still nub at coding teach meh cause i got nothing to do much now

also the game is getting kinda boring, u know when u play a game too much it get's old? yeh wanna add sumthing new that will make the game fun again
Back to top Go down
wahkien
Honorary Member
wahkien


Posts : 239
Join date : 2008-11-03
Location : House

coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitimeWed Jan 07, 2009 6:30 am

O_O???
Back to top Go down
http://www.spammerhater.com
Extreme
[Toasty Legend]
[Toasty Legend]
Extreme


Posts : 1107
Join date : 2008-10-26

coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitimeThu Jan 08, 2009 5:39 pm

Coding is a huge subject.. which part of coding are you interested in?
Back to top Go down
hellzxfire
Normal Member
hellzxfire


Posts : 82
Join date : 2008-11-02
Location : on earth

coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitimeThu Jan 08, 2009 10:36 pm

npc and if possible pq's o.o
Back to top Go down
Extreme
[Toasty Legend]
[Toasty Legend]
Extreme


Posts : 1107
Join date : 2008-10-26

coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitimeThu Jan 08, 2009 10:52 pm

Code:
function start()
{
cm.sendOk("yes");
cm.dispose();

Can you understand that?


Last edited by Extreme on Fri Jan 09, 2009 5:28 pm; edited 1 time in total
Back to top Go down
UnKnown
Elite Member
UnKnown


Posts : 136
Join date : 2008-12-30

coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitimeFri Jan 09, 2009 1:39 am

Extreme wrote:
Code:
function start()
{
cm.sendOk("yes");
cm.dispose();
}

Can you understand that?
wat in the world was DAT D:<
Back to top Go down
Extreme
[Toasty Legend]
[Toasty Legend]
Extreme


Posts : 1107
Join date : 2008-10-26

coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitimeFri Jan 09, 2009 5:28 pm

Easiest NPC script ever? lol.
Back to top Go down
hellzxfire
Normal Member
hellzxfire


Posts : 82
Join date : 2008-11-02
Location : on earth

coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitimeFri Jan 09, 2009 11:34 pm

i shall google it Very Happy
Back to top Go down
Extreme
[Toasty Legend]
[Toasty Legend]
Extreme


Posts : 1107
Join date : 2008-10-26

coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitimeSat Jan 10, 2009 11:53 am

I doubt google will help.
Back to top Go down
Vanilla
Normal Member
Vanilla


Posts : 92
Join date : 2008-12-31

coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitimeSat Jan 10, 2009 11:58 am

wow...no clue right now but il take a guess. Its the npc facial expressions?
Back to top Go down
Extreme
[Toasty Legend]
[Toasty Legend]
Extreme


Posts : 1107
Join date : 2008-10-26

coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitimeSat Jan 10, 2009 12:01 pm

Not even close.
Back to top Go down
Extreme
[Toasty Legend]
[Toasty Legend]
Extreme


Posts : 1107
Join date : 2008-10-26

coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitimeSat Jan 10, 2009 12:05 pm

Try this one.

Code:
/*
   This file is part of the ToastyMS Maple Story Server
    Copyright (C) 2008 Anthony Siu <slugmaster9999@hotmail.com>

    This script is private software: you can not redistribute it and/or modify
    it under the terms of the GNU Affero General Public License version 3
    as published by the Free Software Foundation. You may not use, modify
    or distribute this program under any other version of the
    GNU Affero General Public License.

    This program is not distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

/* Private script, ToastyMS Source
*/

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

var status = 0;
var targets = new Array();
var operation = -1;
var sendTarget;

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

function action(mode, type, selection) {
   if (mode == -1) {
      cm.dispose();
   } else {
      if (mode == 0) {
         cm.sendOk("yes")
         cm.dispose();
         return;
      }
      if (mode == 1)
         status++;
      else
         status--;
      if (status == 0) {
         cm.sendNext("#bgar                                              #bgar");
      } else if (status == 1) {
         cm.sendSimple("asdasd#b\r\n" +
            "#L0#asdasd#l\r\n" +
            "#L1#yaaa#l#k");
      } else if (status == 2) {
         operation = selection;
         if (selection == 0) {
            cm.sendYesNo("Destroyyy?");
         } else if (selection == 1) {
            var toSend = "who#b";
            var iter = cm.getChar().getMap().getCharacters().iterator();
            var i = 0;
            targets = new Array();
            while (iter.hasNext()) {
               var curChar = iter.next();
               toSend += "\r\n#L" + i + "#" + curChar.getName() + "#l";
               targets[i] = curChar;
               i++;
            }
            toSend += "#k";
            cm.sendSimple(toSend);
         }
      } else if (status == 3) {
         if (operation == 0) {
            MapleInventoryManipulator.removeFromSlot(cm.getC(), MapleInventoryType.EQUIP, 1, 1, true);
            cm.sendOk("It is destroyed..")
            cm.dispose();
         } else if (operation == 1) {
            sendTarget = targets[selection];
            cm.sendYesNo("send " + sendTarget.getName() + ".ready");
         }
      } else if (status == 4) {
         if (operation == 1) {
            var item = cm.getChar().getInventory(MapleInventoryType.EQUIP).getItem(1).copy();
            MapleInventoryManipulator.removeFromSlot(cm.getC(), MapleInventoryType.EQUIP, 1, 1, true);
                                    winningplayer = cm.getChar().getName();
                                cm.mapMessage(5, ""+ winningplayer +" yes" + sendTarget.getName() + " no");
            MapleInventoryManipulator.addFromDrop(sendTarget.getClient(), item, "Sent to " + sendTarget.getName() + "using Ms. Tan");
            cm.sendOk(sendTarget.getName() + " 4574. See you next time.");
            cm.dispose();
         }
      }
   }
}   

If you don't get it, you'll probably udnerstand it by Business Computer Aps 11 :/
Back to top Go down
EddyKins
Normal Member
EddyKins


Posts : 50
Join date : 2008-12-30
Age : 28
Location : In Toasty

coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitimeMon Jan 26, 2009 3:52 pm

Hahaha copyright biggest clue non redistributable
Back to top Go down
http://Myspace.com/deaths_king
Vanilla
Normal Member
Vanilla


Posts : 92
Join date : 2008-12-31

coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitimeThu Jan 29, 2009 4:07 pm

*faints*
Back to top Go down
Sponsored content





coding thingy Empty
PostSubject: Re: coding thingy   coding thingy Icon_minitime

Back to top Go down
 
coding thingy
Back to top 
Page 1 of 1
 Similar topics
-
» connection (not the half a day or pq thingy)

Permissions in this forum:You cannot reply to topics in this forum
ToastyMS Forums :: ToastyMS Related. :: General Chat-
Jump to: