Afaik there is no way to retrieve actual stat values via script, just the base values. It shouldn't be too large of a source edit to return actual values, though.
That's because you didn't add brackets to the conditional.
if (readparam(bDex) >= 140 && Upper == 1) { bonus bVariableCastrate,-100; bonus bFixedCastrate,-100; }
First: http://www.eathena.ws/board/index.php?showtopic=269869
Second:
if (BaseLevel == 999 && JobLevel == 500) {
mes "Do you want to rebirth now?";
next;
if(select("Yes:No") == 2) close;
resetlvl(3);
mes "All done.";
close;
}
end;
Third:
if (Zeny < 1000000000) {
mes "You need 999,999,999 Zeny to change sex.";
close;
}
mes "Change sex?";
mes "It'll cost 999,999,999 Zeny.";
next;
if(select("Yes:No") == 2) close;
set Zeny, Zeny-999999999;
changesex;
end;
Emistry, that looks good! :3
I included a similar messaging system inside my way-overcomplicated Queue System, but it's probably more work to edit that than to write the channels from scratch...
@hthuong: They have to be 0 and 1, not both the same flag.
- script test -1,{
OnWhisperGlobal:
getmapxy(.@map$,.@x,.@y,0);
monster .@map$,.@x,.@y,"AI 0",1647,1,"",0,0;
monster .@map$,.@x,.@y,"AI 1",1785,1,"",0,1;
end;
}
@GmOcean: That doesn't work for me, I get an 'unknown mob' error.
@Annie/Jhedzkie: The 'monster' command was modified in r16904 to separate the event flag from size (there are two fields, now). It works.
The 'itemskill' command will cause delayed consumables (item type 11) to be consumed -- otherwise, they'll remain in your inventory. So a simple workaround would be something like:
{ warp strcharinfo(3),0,0; },{},{}
@naaaan: No, that's the mob_id field...
I'm not sure if this can be done in a permanent monster spawn (if anything, the event field?), but it's definitely possible via script command.
My controller's mapflag settings were a bit complicated, so I just updated the entire script to v1.4: http://rathena.org/board/topic/64394-%E2%9C%B0-euphys-scripts-%E2%9C%B0/ xD
You can now use this setting:
set .NoOwner,0; // Automatically kick players from unconquered castles outside of WOE? (1:yes / 0:no)