fixes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6465 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
eae69d7bf5
commit
3ba16c3eeb
@ -23,27 +23,21 @@ mes "What would you like to trade some? It's free";
|
|||||||
switch(select("10 Poison Kunais:10 Icycle Kunais:10 Rough Wind Kunais:10 Black Soil Kunai:10 Explosion Kunai:Nothing at the Moment")) {
|
switch(select("10 Poison Kunais:10 Icycle Kunais:10 Rough Wind Kunais:10 Black Soil Kunai:10 Explosion Kunai:Nothing at the Moment")) {
|
||||||
//Callfunc usage: callfunc "Kunai_Trade",itemreqid1,itemreqct1,itemreqid2,itemreqct2,itemidtrade;
|
//Callfunc usage: callfunc "Kunai_Trade",itemreqid1,itemreqct1,itemreqid2,itemreqct2,itemidtrade;
|
||||||
case 1:
|
case 1:
|
||||||
next;
|
|
||||||
callfunc "Kunai_Trade",13250,20,7524,1,13259;
|
callfunc "Kunai_Trade",13250,20,7524,1,13259;
|
||||||
close;
|
goto L_Bye;
|
||||||
case 2:
|
case 2:
|
||||||
next;
|
|
||||||
callfunc "Kunai_Trade",13251,8,7522,2,13255;
|
callfunc "Kunai_Trade",13251,8,7522,2,13255;
|
||||||
goto L_Bye;
|
goto L_Bye;
|
||||||
case 3:
|
case 3:
|
||||||
next;
|
|
||||||
callfunc "Kunai_Trade",13252,4,7523,2,13257;
|
callfunc "Kunai_Trade",13252,4,7523,2,13257;
|
||||||
goto L_Bye;
|
goto L_Bye;
|
||||||
case 4:
|
case 4:
|
||||||
next;
|
|
||||||
callfunc "Kunai_Trade",13253,2,7524,1,13256;
|
callfunc "Kunai_Trade",13253,2,7524,1,13256;
|
||||||
goto L_Bye;
|
goto L_Bye;
|
||||||
case 5:
|
case 5:
|
||||||
next;
|
|
||||||
callfunc "Kunai_Trade",13254,1,7521,2,13258;
|
callfunc "Kunai_Trade",13254,1,7521,2,13258;
|
||||||
goto L_Bye;
|
goto L_Bye;
|
||||||
case 6:
|
case 6:
|
||||||
next;
|
|
||||||
goto L_Bye;
|
goto L_Bye;
|
||||||
}
|
}
|
||||||
L_Bye:
|
L_Bye:
|
||||||
@ -54,14 +48,13 @@ L_Bye:
|
|||||||
}
|
}
|
||||||
|
|
||||||
function script Kunai_Trade -1,{
|
function script Kunai_Trade -1,{
|
||||||
|
next;
|
||||||
mes "[Jin]";
|
mes "[Jin]";
|
||||||
if (MaxWeight*50/100 < Weight) {
|
if (MaxWeight*50/100 < Weight) {
|
||||||
if (MaxWeight*90/100 < Weight) {
|
if (MaxWeight*90/100 < Weight) {
|
||||||
mes "Sorry but you have more than 90% weight. Your kunais might drop. I can't give you anything.";
|
mes "Sorry but you have more than 90% weight. Your kunais might drop. I can't give you anything.";
|
||||||
next;
|
return;
|
||||||
goto L_Menu;
|
}
|
||||||
} else
|
|
||||||
mes "You have 50% or more weight, do you still want to continue?";
|
mes "You have 50% or more weight, do you still want to continue?";
|
||||||
menu "Yes",-,"No, thanks",L_Return;
|
menu "Yes",-,"No, thanks",L_Return;
|
||||||
}
|
}
|
||||||
@ -98,7 +91,6 @@ switch(select("Yes:I'll think about it")) {
|
|||||||
case 2:
|
case 2:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
L_Bye:
|
L_Return:
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user