Jump to content
  • 0
dave23

MVP Summoner

Question

20 answers to this question

Recommended Posts

  • 0

 

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;    }

Share this post


Link to post
Share on other sites
  • 0

Sorry, forgot a label and had a little typo.

 

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 ;    }

Share this post


Link to post
Share on other sites
  • 0
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;} 

Share this post


Link to post
Share on other sites
  • 0

It's deleting the item but not summoning thanatos.

 

 

Can it also work in rathena?

Please avoid unnecessary bumps, you can bump only after 24 hours.

Share this post


Link to post
Share on other sites
  • 0

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.. 

Share this post


Link to post
Share on other sites
  • 0

There's no error in the console. Sorry for the bump.

Change

 

 monster strnpcinfo( 4 ), 0, 0, "--ja--", 1708, strnpcinfo( 1 ) + "::OnSummon"; 

To

 monster strnpcinfo( 4 ), -1, -1, "--ja--", 1708, strnpcinfo( 1 ) + "::OnSummon"; 

Share this post


Link to post
Share on other sites
  • 0

Change that

monster strnpcinfo( 4 ), -1, -1, "--ja--", 1708, strnpcinfo( 1 ) + "::OnSummon";

to

getmapxy .@m$, .@x, .@y,1;monster strnpcinfo( 4 ), .@x, .@y, "--ja--", 1708, strnpcinfo( 1 ) + "::OnSummon";

Then Thanatos will appear on NPC's cell. Feel free to edit .@x and .@y to the cell you want, or you can edit them with +- so you can duplicate it freely :D

Like this:

getmapxy .@m$, .@x, .@y,1;monster strnpcinfo( 4 ), .@x+1, .@y-1, "--ja--", 1708, strnpcinfo( 1 ) + "::OnSummon";

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.