I want to help contribute.
Forum rules
This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.
Its current use is for the continued development of the server and game it has always served: TMW Classic.
Re: I want to help contribute.
http://pastebin.com/gaXzRmgW
lol well there is something wrong with this script so I made it into a Joke. It runs normally on your server but when you talk to the cat again you get a funny surprise.
lol well there is something wrong with this script so I made it into a Joke. It runs normally on your server but when you talk to the cat again you get a funny surprise.
Re: I want to help contribute.
Code: Select all
mes "You pet the cat and get froze here";
close;
[eof]
Did you try to add a "next" in front of the "close"?
- former Manasource Programmer
- former TMW Pixel artist
- NOT a game master
Please do not send me any inquiries regarding player accounts on TMW.
You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Re: I want to help contribute.
yes. I ended up with the same result.
Re: I want to help contribute.
Jenalya from IRC pointed out a } that I was missing. That has fixed the problem. I took notes heavily to help understand the Document. If I am wrong on anything please tell me and I will change it.
Code: Select all
//This was part of the original document
002-1.gat,15,67,0|script|Samuel|132,{
mes "[Samuel the Nomad]";
mes "\"This is really a nice place.\"";
mes "Don't you think so?\"";
close;
}
002-1.gat,18,68,0|script|Elijah|128,{
mes "[Elijah the Nomad]";
mes "\"If I only had a tent...\"";
close;
}
/////////////////////////////////////////////////////////////////
//Fun Fun Fun its a Kitty cat //
////////////////////////////// //
// The purpose of this Document is to help teach me this //
// programming language.There for it is heavily documented//
// with Notes to help anyone else who views it. //
/////////////////////////////////////////////////////////////////
//
//002-1.gat tells you what map the NPC is located on
//22,62,0 are the X,Y,Z or Z "tells what direction its facing"
//|script| tells you that its a script
//cat| Is the text that goes under the NPC in game.
//172 is the NPC image number located in npc.xml from client-data
//{ is the start of a function
002-1.gat,22,62,0|script|cat|172,{
// if Milk is equal to 1 goto the label named L_Sure;
if(Milk == 1) goto L_Sure;
// if Milk is equal to 2 goto the label named L_Done;
if(Milk == 2) goto L_Done;
// print text that says [cat]
mes "[cat]";
// Print text from quotation
mes "You see a cat licking its paws.";
// Display a button that allows you to see whats next named next.
next;
// Print text from quotation
mes "It looks thirsty in this heat.";
next;
// goto the Label named Question
goto L_Question;
//Label named L_Question
L_Question:
// Print text from quotation
mes "[cat]";
// Print text from quotation
mes "You think hard about feeding the cat and decide";
// Display a button that allows you to see whats next named next.
next;
// Gives a player an interactive selection
menu
// Print text from quotation and goto Label named L_Sure
"To put something in its dish", L_Sure,
// Print text from quotation and do nothing
"Nope, I hate cats", -;
// Display a button that closes the window, named close.
close;
//Label named L_Sure
L_Sure:
//If the amount of Milk in a players inventory is greater than 1
set Milk, 1;
if(countitem("Milk") >= 1)
//goto the label named L_Have
goto L_Have;
// Print text from quotation
mes "[cat]";
// Print text from quotation
mes "The cat meows but does not move";
// Display a button that allows you to see whats next named next.
next;
// Print text from quotation
mes "It looks thirsty for Milk";
// Display a button that closes the window, named close.
close;
//Label named L_Have
L_Have:
// Print text from quotation
mes "[cat]";
// Print text from quotation
mes "The cat perks up and begins to become lively";
next;
// Print text from quotation
mes "You pick up its dish and find 50gp";
// Display a button that allows you to see whats next named next.
next;
// Print text from quotation
mes "You think to yourself I did feed there cat";
// Display a button that allows you to see whats next named next.
next;
// Print text from quotation
mes "you decide to keep the money";
// Display a button that allows you to see whats next named next.
next;
// Print text from quotation
mes "you pet the cat for a bit and walk off";
// Display a button that allows you to see whats next named next.
next;
// If the amount of Milk in a players inventory is less than 1
if(countitem("Milk") < 1)
// goto the label named L_Sure
goto L_Sure;
// Removes 1 item named milk
delitem "milk", 1;
// Gives the player 50 game currency
set zeny, zeny + 50;
//
set Milk, 2;
// Display a button that closes the window, named close.
close;
// A Label Named L_Done
L_Done:
// Print text from quotation
mes "[cat]";
// Print text from quotation
mes "This cat looks happy to see you";
// Display a button that closes the window, named close.
close;
// ends the function
}