ToastyMS Forums

Welcome to the ToastyMS Forums
Home­FAQ­Search­Memberlist­Usergroups­Register­Log in
Post new topic   Reply to topicShare | 
 

 coding thingy

View previous topic View next topic Go down 
AuthorMessage
hellzxfire
Normal Member


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

PostSubject: coding thingy   Wed Jan 07, 2009 12: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
View user profile
wahkien
Honorary Member


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

PostSubject: Re: coding thingy   Wed Jan 07, 2009 5:30 am

O_O???

_________________
Back to top Go down
View user profile http://www.spammerhater.com
Extreme
[Toasty Legend]
[Toasty Legend]


Posts: 1103
Join date: 2008-10-27

PostSubject: Re: coding thingy   Thu Jan 08, 2009 4:39 pm

Coding is a huge subject.. which part of coding are you interested in?

_________________


Vote, vote, vote!
http://www.xtremetop100.com/in.php?site=1132256980
Back to top Go down
View user profile
hellzxfire
Normal Member


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

PostSubject: Re: coding thingy   Thu Jan 08, 2009 9:36 pm

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


Posts: 1103
Join date: 2008-10-27

PostSubject: Re: coding thingy   Thu Jan 08, 2009 9:52 pm

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


Can you understand that?

_________________


Vote, vote, vote!
http://www.xtremetop100.com/in.php?site=1132256980


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


Posts: 136
Join date: 2008-12-30

PostSubject: Re: coding thingy   Fri Jan 09, 2009 12: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
View user profile
Extreme
[Toasty Legend]
[Toasty Legend]


Posts: 1103
Join date: 2008-10-27

PostSubject: Re: coding thingy   Fri Jan 09, 2009 4:28 pm

Easiest NPC script ever? lol.

_________________


Vote, vote, vote!
http://www.xtremetop100.com/in.php?site=1132256980
Back to top Go down
View user profile
hellzxfire
Normal Member


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

PostSubject: Re: coding thingy   Fri Jan 09, 2009 10:34 pm

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


Posts: 1103
Join date: 2008-10-27

PostSubject: Re: coding thingy   Sat Jan 10, 2009 10:53 am

I doubt google will help.

_________________


Vote, vote, vote!
http://www.xtremetop100.com/in.php?site=1132256980
Back to top Go down
View user profile
Vanilla
Normal Member


Posts: 91
Join date: 2009-01-01

PostSubject: Re: coding thingy   Sat Jan 10, 2009 10:58 am

wow...no clue right now but il take a guess. Its the npc facial expressions?

_________________
Back to top Go down
View user profile
Extreme
[Toasty Legend]
[Toasty Legend]


Posts: 1103
Join date: 2008-10-27

PostSubject: Re: coding thingy   Sat Jan 10, 2009 11:01 am

Not even close.

_________________


Vote, vote, vote!
http://www.xtremetop100.com/in.php?site=1132256980
Back to top Go down
View user profile
Extreme
[Toasty Legend]
[Toasty Legend]


Posts: 1103
Join date: 2008-10-27

PostSubject: Re: coding thingy   Sat Jan 10, 2009 11:05 am

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 :/

_________________


Vote, vote, vote!
http://www.xtremetop100.com/in.php?site=1132256980
Back to top Go down
View user profile
EddyKins
Normal Member


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

PostSubject: Re: coding thingy   Mon Jan 26, 2009 2:52 pm

Hahaha copyright biggest clue non redistributable

_________________
Back to top Go down
View user profile http://Myspace.com/deaths_king
Vanilla
Normal Member


Posts: 91
Join date: 2009-01-01

PostSubject: Re: coding thingy   Thu Jan 29, 2009 3:07 pm

*faints*

_________________
Back to top Go down
View user profile
 

coding thingy

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
ToastyMS Forums :: ToastyMS Related. :: General Chat-
Post new topic   Reply to topic