Welcome!

Join our community of MMORPG enthusiasts and private server developers! By registering, you'll gain access to in-depth discussions on source codes, binaries, and the latest developments in MMORPG server files. Collaborate with like-minded individuals, explore tutorials, and share insights on building and optimizing private servers. Join us today and unlock the full potential of MMORPG server development!

Join Today!

[Tut] cm.sendGetText + cm.GetText

Newbie Spellweaver
Joined
Apr 18, 2008
Messages
84
Reaction score
1
Location
src\net\sf\odin
alrighty, gots bored and tried to do this o.o;
sooo here's how =3

Requirement's
- Basic NPC scripting
- A cookie for payment


first off, add this~
PHP:
cm.sendGetText("Who are you?");
on any npc ;P
example:
PHP:
else if (status == 0) {
	cm.sendGetText("Who are you?");
}

should look liek this =]

Stars0fLight - [Tut] cm.sendGetText + cm.GetText - RaGEZONE Forums


NEXT :

add this to the NPC
PHP:
else if (status == 1) {
	cm.sendOk("Hello #b" + cm.getText() + "#k!");
	cm.dispose();
}

now if chu click 'ok' this will come up =3

Stars0fLight - [Tut] cm.sendGetText + cm.GetText - RaGEZONE Forums


Have fun~!
 
Last edited:
Re: [Guide] cm.sendGetText + cm.GetText

Nice. I tink you can put in release^^.
Can I make it that once you type in some form or words, you will be warp to another map?
 
Re: [Guide] cm.sendGetText + cm.GetText

alrighty, gots bored and tried to do this o.o;
sooo here's how =3

first off, add this~
PHP:
cm.sendGetText("Who are you?");
on any npc ;P
example:
PHP:
else if (status == 0) {
	cm.sendGetText("Who are you?");
}

should look liek this =]

Stars0fLight - [Tut] cm.sendGetText + cm.GetText - RaGEZONE Forums


NEXT :

add this to the NPC
PHP:
else if (status == 1) {
	cm.sendOk("Hello #b" + cm.getText() + "#k!");
	cm.dispose();
}

now if chu click 'ok' this will come up =3

Stars0fLight - [Tut] cm.sendGetText + cm.GetText - RaGEZONE Forums


Have fun~!

Srry to flame if you call this flaming >.<. But great job, really.

But arent u supposed to start off saying
Code:
function start() {
Srry im new with java correct me if im wrong >.<
 
Re: [Guide] cm.sendGetText + cm.GetText

Nice. I tink you can put in release^^.
Can I make it that once you type in some form or words, you will be warp to another map?

yepyep, think it'd be something liek:
PHP:
if (cm.GetText.equals(henesys)) {
//cm.------------
}
^^^^^^^^ Made random, not sure if it'll work ^^^^^^^^


Srry to flame if you call this flaming >.<. But great job, really.

But arent u supposed to start off saying
Code:
function start() {
Srry im new with java correct me if im wrong >.<

yepyep, just putting everything in short though.
there's enough guide's on NPC scripting =T
 
Back