Yggdrasil Berry Quest

View previous topic View next topic Go down

Yggdrasil Berry Quest

Post by Ayie on Mon Nov 14, 2011 5:31 pm

prontera,44,270,4 script YggBerry Quest 870,{
mes "[Yggdrasil Berry Quest]";
mes "Good Day "+ strcharinfo(0) + ", Do you come here for YggBerry Quest?";
next;
mes "Well I can exchange you my berry if you can give me my favorite strawberry";
mes "Are you interested?";
next;
switch(select("Trade 100 strawberry = 100 Berry:Trade 200 strawberry = 200 Berry:No Thanks")){
case 1:
mes "[Yggdrasil Berry Quest]";
mes "Are you sure you have 100 strawberries?";
next;
mes "Let me check you first";
if(checkweight(607,100)==0) goto L_OW;
if(countitem(578) < 100){
mes "Sorry I think you don't have enough Strawberries";
mes "Come Back if you are sure you have it";
close;
}
else {
delitem 578,100;
mes "Thank You!";
getitem 607,100;
close;
}
case 2:
mes "[Yggdrasil Berry Quest]";
mes "Are you sure you have 200 strawberries?";
next;
mes "Let me check you first";
set @NowWeight, MaxWeight - Weight;
if(checkweight(607,100)==0) goto L_OW;
if(countitem(578) < 200){
mes "Sorry I think you don't have enough Strawberries";
mes "Come Back if you are sure you have it";
close;
}
else {
delitem 578,200;
mes "Thank You!";
getitem 607,200;
close;
}
case 3:
mes "[Yggdrasil Berry Quest]";
mes "Come back if you change your mind, See Yah!";
close;
}
L_OW:
mes "Sorry You can't carry my Berries because you are overweight";
close;
}


=====================================================

you can change strawberry to other item =)
if got any error..pls tell me ya!

Ayie

Posts: 5
Join date: 14/11/2011
Age: 22
Location: Alliance Ro

View user profile http://www.suarapeople.com/

Back to top Go down

Re: Yggdrasil Berry Quest

Post by GM Atelier Stella Momoe on Mon Nov 14, 2011 5:39 pm

seelok2nya barisan pertama tu tulis camni untuk mengelakkan newbie dapat error dengan script ni
prontera,44,270,4(TAB)script(TAB)YggBerry Quest(TAB)870

_________________



GM Atelier Stella Momoe
Admin

Posts: 31
Join date: 14/11/2011
Age: 23
Location: Penang

View user profile http://momoero.co.cc/cp/

Back to top Go down

Re: Yggdrasil Berry Quest

Post by Crewbytes on Tue Nov 15, 2011 7:47 pm

Code:
prontera,44,270,4 script YggBerry Quest 870,{
mes "[Yggdrasil Berry Quest]";
mes "Good Day "+ strcharinfo(0) + ", Do you come here for YggBerry Quest?";
next;
mes "Well I can exchange you my berry if you can give me my favorite strawberry";
mes "Are you interested?";
next;
switch(select("Trade 100 strawberry = 100 Berry:Trade 200 strawberry = 200 Berry:No Thanks")){
case 1:
mes "[Yggdrasil Berry Quest]";
mes "Are you sure you have 100 strawberries?";
next;
mes "Let me check you first";
if(checkweight(607,100)==0) goto L_OW;
if(countitem(578) < 100){
mes "Sorry I think you don't have enough Strawberries";
mes "Come Back if you are sure you have it";
close;
}
else {
delitem 578,100;
mes "Thank You!";
getitem 607,100;
close;
}
case 2:
mes "[Yggdrasil Berry Quest]";
mes "Are you sure you have 200 strawberries?";
next;
mes "Let me check you first";
set @NowWeight, MaxWeight - Weight;
if(checkweight(607,100)==0) goto L_OW;
if(countitem(578) < 200){
mes "Sorry I think you don't have enough Strawberries";
mes "Come Back if you are sure you have it";
close;
}
else {
delitem 578,200;
mes "Thank You!";
getitem 607,200;
close;
}
case 3:
mes "[Yggdrasil Berry Quest]";
mes "Come back if you change your mind, See Yah!";
close;
}
L_OW:
mes "Sorry You can't carry my Berries because you are overweight";
close;
}


=====================================================

Crewbytes

Posts: 6
Join date: 15/11/2011
Age: 24
Location: Penang

View user profile http://www.crewbytes.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum