| coding thingy | |
|
|
Author | Message |
---|
hellzxfire Normal Member
Posts : 82 Join date : 2008-11-02 Location : on earth
| Subject: coding thingy Wed 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 | |
|
| |
wahkien Honorary Member
Posts : 239 Join date : 2008-11-03 Location : House
| Subject: Re: coding thingy Wed Jan 07, 2009 6:30 am | |
| | |
|
| |
Extreme [Toasty Legend]
Posts : 1107 Join date : 2008-10-26
| Subject: Re: coding thingy Thu Jan 08, 2009 5:39 pm | |
| Coding is a huge subject.. which part of coding are you interested in? | |
|
| |
hellzxfire Normal Member
Posts : 82 Join date : 2008-11-02 Location : on earth
| Subject: Re: coding thingy Thu Jan 08, 2009 10:36 pm | |
| npc and if possible pq's o.o | |
|
| |
Extreme [Toasty Legend]
Posts : 1107 Join date : 2008-10-26
| Subject: Re: coding thingy Thu 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 | |
|
| |
UnKnown Elite Member
Posts : 136 Join date : 2008-12-30
| Subject: Re: coding thingy Fri 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:< | |
|
| |
Extreme [Toasty Legend]
Posts : 1107 Join date : 2008-10-26
| Subject: Re: coding thingy Fri Jan 09, 2009 5:28 pm | |
| Easiest NPC script ever? lol. | |
|
| |
hellzxfire Normal Member
Posts : 82 Join date : 2008-11-02 Location : on earth
| Subject: Re: coding thingy Fri Jan 09, 2009 11:34 pm | |
| i shall google it | |
|
| |
Extreme [Toasty Legend]
Posts : 1107 Join date : 2008-10-26
| Subject: Re: coding thingy Sat Jan 10, 2009 11:53 am | |
| I doubt google will help. | |
|
| |
Vanilla Normal Member
Posts : 92 Join date : 2008-12-31
| Subject: Re: coding thingy Sat Jan 10, 2009 11:58 am | |
| wow...no clue right now but il take a guess. Its the npc facial expressions? | |
|
| |
Extreme [Toasty Legend]
Posts : 1107 Join date : 2008-10-26
| Subject: Re: coding thingy Sat Jan 10, 2009 12:01 pm | |
| | |
|
| |
Extreme [Toasty Legend]
Posts : 1107 Join date : 2008-10-26
| Subject: Re: coding thingy Sat 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 :/ | |
|
| |
EddyKins Normal Member
Posts : 50 Join date : 2008-12-30 Age : 28 Location : In Toasty
| Subject: Re: coding thingy Mon Jan 26, 2009 3:52 pm | |
| Hahaha copyright biggest clue non redistributable | |
|
| |
Vanilla Normal Member
Posts : 92 Join date : 2008-12-31
| Subject: Re: coding thingy Thu Jan 29, 2009 4:07 pm | |
| | |
|
| |
Sponsored content
| Subject: Re: coding thingy | |
| |
|
| |
| coding thingy | |
|