prontera,137,176,5 script WoE Prize Giver 1002,{
if ( agitcheck() ) {
mes "a war is currently in progress";
mes "if your guild owned a castle ask your guild master to see me to claim the reward";
close;
}
if ( getcastledata( .castlename$,1 ) == getcharid(2) ) {
if ( $castle_claimed ) {
mes "your guild already received the reward";
close;
}else if ( getguildmasterid( getcharid(2) ) == getcharid(0) ) {
mes "receiving the reward for "+ .castlename$[.@menu];
getitem 7227,100; // some mathematics ...
getitem 674,10;
getitem 14232,10;
set $castle_claimed,1;
close;
}else {
mes "ask your guild master to see me";
close;
}
}
mes "your guild failed to take reward";
mes "if your guild owned a castle ask your guild master to claim reward from me";
close;
OnAgitEnd:
set $castle_claimed, 0; // everytime woe ends the variable resets
end;
OnInit:
set .castlename$, "prtg_cas01";
waitingroom "Woe Prize",0;
end;
}
Find:
// Payment Currency + Cost
// Can be ITEM ID or Any Variable.
setarray .currency$,
"512", // Hairstyle - Ex. need Apple
"#CASHPOINTS", // Hair Color - Ex. need CASHPOINTS
"Zeny"; // Cloth Color - Ex. need Zeny
setarray .cost,
123, // Hairstyle ( 123 Apple )
5432, // Hair Color ( 5,432 CASHPOINTS )
12345; // Cloth Color ( 12,345 Zeny )
Replace:
// Payment Currency + Cost
// Can be ITEM ID or Any Variable.
//setarray .currency$,
// "512", // Hairstyle - Ex. need Apple
// "#CASHPOINTS", // Hair Color - Ex. need CASHPOINTS
// "Zeny"; // Cloth Color - Ex. need Zeny
//setarray .cost,
// 123, // Hairstyle ( 123 Apple )
// 5432, // Hair Color ( 5,432 CASHPOINTS )
// 12345; // Cloth Color ( 12,345 Zeny )
// Payment Currency + Cost
// Can be ITEM ID or Any Variable.
setarray .currency$,
"512", // Hairstyle - Ex. need Apple
"#CASHPOINTS", // Hair Color - Ex. need CASHPOINTS
"Zeny"; // Cloth Color - Ex. need Zeny
setarray .cost,
123, // Hairstyle ( 123 Apple )
5432, // Hair Color ( 5,432 CASHPOINTS )
12345; // Cloth Color ( 12,345 Zeny )
Yea, that's why I included Emistry Adv. Stylist.
// Blacklisted Style for each style and each gender.
// --- Female ---
.blacklist_hairstyle_0$ = "2,4,6";
.blacklist_haircolor_0$ = "1,3,5";
.blacklist_cloth_0$ = "1,2,3";
Try this..
trunk/src/map/status.c
Find:
switch (i) { //Type 0: PC killed -> Place here statuses that do not dispel on death.
case SC_ELEMENTALCHANGE://Only when its Holy or Dark that it doesn't dispell on death
if( sc->data[i]->val2 != ELE_HOLY && sc->data[i]->val2 != ELE_DARK )
break;
case SC_WEIGHT50:
case SC_WEIGHT90:
Add below:
case AL_BLESSING:
case AL_INCAGI:
trunk/conf/battle/client.conf
// Valid range of dyes and styles on the client.
min_hair_style: 0
max_hair_style: 27
min_hair_color: 0
max_hair_color: 8
min_cloth_color: 0
max_cloth_color: 4
Or better use Emistry Advanced Stylist; http://rathena.org/board/files/file/2859-advanced-stylist/
I tried your script in my test server and seems like there's no problem in it.
I suggest to revert it back to original script then restart your server, sometimes oninit doesn't workfine if you only use @loadnpc.