- Slot machine (the one you see when catching a pet) appears
Not sure if it's possible, but would be awesome if it was.
seems impossibleI tested it
src/map/script.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)diff --git a/src/map/script.c b/src/map/script.cindex cbea20e..0d1a416 100644--- a/src/map/script.c+++ b/src/map/script.c@@ -18778,10 +18778,27 @@ bool script_hp_add(char *name, char *args, bool (*func)(struct script_state *st) return script->add_builtin(&buildin, true); } +BUILDIN(catch_process) {+ TBL_PC *sd = script->rid2sd(st);+ if ( sd )+ clif->catch_process(sd);+ return true;+}++BUILDIN(pet_roulette) {+ TBL_PC *sd = script->rid2sd(st);+ if ( sd )+ clif->pet_roulette( sd, script_getnum(st,2) ? 1:0 );+ return true;+}++ #define BUILDIN_DEF(x,args) { buildin_ ## x , #x , args } #define BUILDIN_DEF2(x,x2,args) { buildin_ ## x , x2 , args } void script_parse_builtin(void) { struct script_function BUILDIN[] = {+ BUILDIN_DEF(catch_process,""),+ BUILDIN_DEF(pet_roulette,"i"), // NPC interaction BUILDIN_DEF(mes,"s*"), BUILDIN_DEF(next,""),
Code:
- script jdskjsf -1,{OnInit: bindatcmd "petcatch", strnpcinfo(0)+"::Onbbb"; bindatcmd "petroll", strnpcinfo(0)+"::Onaaa"; end;Onaaa: pet_roulette( atoi( .@atcmd_parameters$ ) ); end;Onbbb: catch_process(); end;}
the clif->catch_process demands the player to click on the monster (poring)Alt+1 to execute @petcatch, and the cursor change into monster taming one,
after click on the poring only the machine start rolling,
I Alt+2 (@petroll 0) and gets fail without monster, Alt+3 (@petroll 1) gets success but without monster too
seems like there's no known way to just make the machine appear ... probably need some client hexing already
EDIT: its not difficult to write the command, but doesn't look promising
yeah better use cutin
PS: reminds me of this
http://rathena.org/board/topic/90717-r-color-game-machine/?hl=cutin#entry236736