The passion of fellow forummers is making me warm. Hehe.
I'm releasing my npc scripts for people who can't script.
If you like my npcs, be sure to check back frequently as i'll be updating this thread when i'm free.
Here's the first one.
PHP Code:
//Description: A npc which can greet.
function start()
{
cm.sendOk("Hello i am a happy npc!");
cm.dispose();
}
Here's the second.
PHP Code:
//Description: A rude npc.
var myText = "Go away!";
function start()
{
cm.sendOk(myText);
cm.dispose();
}
Here's the third.
PHP Code:
//Description: A very rude npc.
var myText = "Go away!";
function start()
{
myText += "And damn you!";
cm.sendOk(myText);
cm.dispose();
}
Here's the 4th.
PHP Code:
//Description: A kind npc.
function start()
{
PraisePlayerAndAwardHim();
cm.dispose();
}
function PraisePlayerAndAwardHim()
{
cm.sendOk("Well done. Here's 1000 mesos for your effort.");
cm.gainMeso(1000);
}
Here's the 5th.
PHP Code:
//Description: A bad npc.
function start()
{
cm.sendOk("I'm gonna take your mesos.");
LoseMeso(1000);
cm.dispose();
}
function LoseMeso(amount)
{
cm.gainMeso(-amount);
}