prontera,100,100,4 script Thanatos Caller 100,{ setarray .@item[0], 512, 1; if ( mobcount ( "this", "Thanatos Caller::OnThan" ) ) mes "Thanatos already summoned."; else if ( gettimetick ( 2 ) - .summon < 3*60 ) { mes "Hi, I have the number of cellphone of Thanatos."; mes "I'm the only one who has it. And I can call him if you give me:"; mes .@item[1] +" "+ getitemname ( .@item[0] ); if ( countitem ( .@item[0] ) >= .@item[1] ) { select "Summon"; monster "this", 0, 0, "--ja--", THANATOS, 1, "Thanatos Caller::OnThan"; delitem .@item[0], .@item[1] ; } else mes "You don't have the required."; } else { set .@s, 3*60 - gettimetick ( 2 ) + .summon; mes "Please wait "+ .@s/3600 +"h "+ .@s/60 +"m "+ .@s%60 +"s"; } close; }
prontera,100,100,4 script Thanatos Caller 100,{ setarray .@item[0], 512, 1; if ( mobcount ( "this", "Thanatos Caller::OnThan" ) ) mes "Thanatos already summoned."; else if ( gettimetick ( 2 ) - .summon >= 3*60 ) { mes "Hi, I have the number of cellphone of Thanatos."; mes "I'm the only one who has it. And I can call him if you give me:"; mes .@item[1] +" "+ getitemname ( .@item[0] ); if ( countitem ( .@item[0] ) >= .@item[1] ) { select "Summon"; monster "this", 0, 0, "--ja--", THANATOS, 1, "Thanatos Caller::OnThan"; delitem .@item[0], .@item[1] ; } else mes "You don't have the required."; } else { set .@s, 3*60 - gettimetick ( 2 ) + .summon; mes "Please wait "+ .@s/3600 +"h "+ .@s/60 +"m "+ .@s%60 +"s"; } close; OnThan: set .summon, gettimetick ( 2 ); end ; }
prontera,150,150,0 script Thanatos Summoner 100,{ setarray .items[ 0 ], 512, 1; .delay = 1; // in minutes if ( mobcount( strnpcinfo( 4 ), strnpcinfo( 1 ) + "::OnSummon" ) ) mes "Thanatos is here!"; else if ( gettimetick( 2 ) < #timer ) mes "Thanatos cannot be summoned this time"; else if ( countitem( .items[ 0 ] ) < .items[ 1 ] ) mes "You need " + .items[ 1 ] + "x " + getitemname( .items[ 0 ] ) + " in order to summon thanatos!"; else { mes "Are you sure you want to summon thanatos? I will delete the item requirement in order to summon him."; next; if ( select( "Yes:No" ) - 1 ) close; delitem .items[ 0 ], .items[ 1 ]; monster strnpcinfo( 4 ), 0, 0, "--ja--", 1708, strnpcinfo( 1 ) + "::OnSummon"; } close; OnSummon: #timer = gettimetick( 2 ) + ( .delay * 60 ); end;}
Please avoid unnecessary bumps, you can bump only after 24 hours.It's deleting the item but not summoning thanatos.
Can it also work in rathena?
Please check the error in the console so that the people that wants to help you can fix it easily..It's deleting the item but not summoning thanatos.
Can it also work in rathena?
ChangeThere's no error in the console. Sorry for the bump.
monster strnpcinfo( 4 ), -1, -1, "--ja--", 1708, strnpcinfo( 1 ) + "::OnSummon";
getmapxy .@m$, .@x, .@y,1;monster strnpcinfo( 4 ), .@x+1, .@y-1, "--ja--", 1708, strnpcinfo( 1 ) + "::OnSummon";
We use essential cookies to make this site work, and optional cookies to enhance your experience.