monique's request of Eomie

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
jak1
Peon
Peon
Posts: 18
Joined: 07 May 2009, 00:42

monique's request of Eomie

Post by jak1 » 26 Oct 2010, 19:15

eomie.txt

Code: Select all

// A professor at Tulimshar's magic academy
// Monique's request
// ---------------------config----------------------
set @itemreward$,"";      // item name of the reward
// -------------------------------------------------

024-1.gat,72,94,0	script	Eomie	164,{
	if (eomie_quest == 1) goto eomie_asked;
	if (eomie_quest == 2) goto eomie_reward;
	if (eomie_quest == 3) goto eomie_end;
	mes "[Eomie]";
	mes "\"I maintain this little spot of grass in the desert.\"";
	next;
	mes "\"Unfortunaly the grass seems to be getting brown, i have heard the IceWater can help it grow better";
	mes "But i don't know where i can get this IceWater.";
	mes "Can you help me to get cold IceWater?\"";
	menu 
		"Yes of course",eomie_yes1,
		"No, there is no way to find it in a Desert",-;
	close;

eomie_yes1:
	emotion 3;
	next;
	mes "\"She seems to be happy about this message.\"";
	set eomie_quest,1;
	close;
	
eomie_asked:
	mes "\"Did you got some IceWater?\"";
	menu
		"Yes, fast... it's going to get warm",eomie_yes2,
		"No, Sorry",-;
	close;
	
eomie_yes2:
	if(countitem("BottleOfIceWater") == 0) goto eomie_not_enough;
	mes "\"Thank you very much for your help.";
	mes "Now the grass and the spot can grow up\"";
	delitem "BottleOfIceWater", 1;
	next;
	mes "\"Wait, don't go!";
	mes "Here i have a ["+@itemreward$+"] for you.";												
	mes "Maybe it can help you on your way.\"";
	getinventorylist;
	if (@inventorylist_count == 100) goto eomie_toomany;	

eomie_reward:
   mes "\"Here is your reward.\"";
   getitem "@itemreward$",1 ;
   set eomie_quest,3;
   close;

eomie_toomany:
   mes "\"You dont have enough room in your inventory, come back if your bag isn't so full";
   mes "I will wait here\"";
   set eomie_quest,2;
   close;
   
eomie_not_enough:
   mes "I can't see any Icewater in your bag";
   close;

eomie_end:
   mes "[Eomie]";
   mes "\"I maintain this little spot of grass in the desert.\"";
   close;
watterfall.txt

Code: Select all

//	WATERFALL!!
MAP.GAT,X,Y,0	script	Waterfall	127,{
	if (getequipid(equip_gloves) >= 0) goto gloves_equiped;
	mes "[" +strcharinfo(0)+ "]";
	mes "\"damn, that's cold";
	mes "need to equip any gloves\"";
	mes "You adhere firmly to the ice";
	next;
	mes "you got hurt";
	mes "[" +strcharinfo(0)+ "]";
	mes "\"Outch!\"";
	heal -100, 0;
	getinventorylist;
	if 
		((countitem(531) > 0) || (countitem(532) > 0) || 
		(countitem(563) > 0) || (countitem(741) > 0) || 
		(countitem(756) > 0) || (countitem(2160) > 0) || 
		(countitem(2161) > 0) || (countitem(2162) > 0) || 
		(countitem(2163) > 0) || (countitem(2164) > 0) || 
		(countitem(2165) > 0) || (countitem(2166) > 0) || 
		(countitem(2167) > 0) || (countitem(2168) > 0) || 
		(countitem(2169) > 0)) goto butininventury;

	close;
	
butininventury:
	mes "I got some in my inventury, why don't i use them?!";
	close;
	
gloves_equiped:
	mes "\"Much better with gloves\"";
	if (countitem(540) == 0) goto nobottle;
	mes "You fill it in an [EmptyBottle]";
	delitem "EmptyBottle",1;
	next;
	getitem "BottleOfIceWater",1;
	close;
	
nobottle:
	mes "You don't know where you should fill it";
	close;
}
IT's testet
-we need the drawn frozzen waterfall
+ you only need to put the itemid and itemname in the 1 set commands
UPDATED
yours jak1
Last edited by jak1 on 27 Oct 2010, 15:53, edited 2 times in total.
@}->--- ---<-{@
User avatar
argul
Novice
Novice
Posts: 237
Joined: 08 Aug 2010, 19:43

Re: monique's request of Eomie

Post by argul » 26 Oct 2010, 20:08

we could put an npc in nivalis, or another snowy region who gives you cooled water as a reward (usual water bottles).

Additionally a timer will be setup, so you got to go here to tulim fast enough to give him really cooled water :-D
---
jak1
Peon
Peon
Posts: 18
Joined: 07 May 2009, 00:42

Re: monique's request of Eomie

Post by jak1 » 26 Oct 2010, 20:11

yeah, i thought so too :D
@}->--- ---<-{@
User avatar
enchilado
Warrior
Warrior
Posts: 972
Joined: 06 Mar 2009, 02:21
Location: evermore a GUY

Re: monique's request of Eomie

Post by enchilado » 26 Oct 2010, 21:34

If anybody with the power to do so reads this, should this be moved to Content Development?

-------

I don't believe timers can be character-specific.

With regards to the scripting, I'm not sure if some of those spaces are in the right place. For example,

Code: Select all

 getitem @itemidreward$,1 ;
should really be

Code: Select all

 getitem @itemidreward$, 1;
I suppose it might work anyway, all existing scripts are written as that second one.

Now, you have three variables set here. Since the name of Ice Water (which should by Iced Water, IMO) isn't written from a variable, you don't need to set a variable to the ID of the item. Just write,

Code: Select all

if (countitem("IcedWater") < 1) goto eomie_not_enough;
and the same thing with the reward.


Now, apart from that stuff, it looks pretty good! There are just a few minor errors in the English, and if that's fixed it could make a good little quest - though an EXP reward might be more appropriate than an item one.

It'd be especially good if there was a nice quest for the Iced Water as well.
jak1
Peon
Peon
Posts: 18
Joined: 07 May 2009, 00:42

Re: monique's request of Eomie

Post by jak1 » 26 Oct 2010, 22:05

I don't believe timers can be character-specific
i don't know... maybe we can make a function...
i'm still working on it

Ty, english isn't my best langue, im from germany^^
i will do my best...
@}->--- ---<-{@
User avatar
enchilado
Warrior
Warrior
Posts: 972
Joined: 06 Mar 2009, 02:21
Location: evermore a GUY

Re: monique's request of Eomie

Post by enchilado » 26 Oct 2010, 22:39

Don't be worried about the English, if there's anything really wrong I can fix it for you (if you want).
jak1
Peon
Peon
Posts: 18
Joined: 07 May 2009, 00:42

Re: monique's request of Eomie

Post by jak1 » 26 Oct 2010, 22:41

poison_ivy wrote:Don't be worried about the English, if there's anything really wrong I can fix it for you (if you want).
sure :)
so i can learn how it should looks like^^

yours jak
@}->--- ---<-{@
Arphetic
Novice
Novice
Posts: 183
Joined: 29 Jun 2010, 00:51

Re: monique's request of Eomie

Post by Arphetic » 26 Oct 2010, 22:58

poison_ivy wrote:I don't believe timers can be character-specific.
You mean like on UFB, with the Black Boots Quest?
bcs86 wrote:This game is a long way from looking like something people could take seriously.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: monique's request of Eomie

Post by Crush » 27 Oct 2010, 10:56

jak1 wrote: IT IS NOT TESTED
Hello jak1

When you really want to be a productive developer, you should really try to set up your own server and test your scripts on it yourself.

Debugging completely untested code comming from someone else can be a very hard task for the other developers which can take more time than it would take to do the feature themself. When you would test and debug your scripts yourself, your contributions would be a lot more useful.
  • 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.
jak1
Peon
Peon
Posts: 18
Joined: 07 May 2009, 00:42

Re: monique's request of Eomie

Post by jak1 » 27 Oct 2010, 12:02

Crush wrote:
jak1 wrote: IT IS NOT TESTED
Hello jak1

When you really want to be a productive developer, you should really try to set up your own server and test your scripts on it yourself.

Debugging completely untested code comming from someone else can be a very hard task for the other developers which can take more time than it would take to do the feature themself. When you would test and debug your scripts yourself, your contributions would be a lot more useful.

ehm... that was only the idea, i sad im working on it btw, i got 2 running server's and i will test it if its readdy for it
but thanks for the feedback :)
@}->--- ---<-{@
Post Reply