Jump to content
  • 0

Question

Posted

Hello rA. It's been a while. I want to request a script that when a gm whispered to "GO" the NPC , warps will be activated and also a whisper "END" for deactivation of the warps.

 

Here are the warps :

 
endless_war,90,86,0    warp    endlesswar01    2,2,endless_war,97,86
endless_war,165,86,0    warp    endlesswar02    2,2,endless_war,158,86

 

 

Hope someone will help me :D
 

Thanks in Advance  /no1

 

SlashGeeGee

7 answers to this question

Recommended Posts

Posted

I think, you better use the NPC script, That you can modify. not a warp script.

such like this:

endless_war,90,86,0	script	endleswarp01	45,2,2,{

OnTouch:
	warp "endless_war",97,86;
}

 

Here's.

Not tested, but it should work

 

endless_war,90,86,0	script	endleswarp01	45,2,2,{

OnTouch:
	warp "endless_war",97,86;

OnWhisperGlobal:
    if (@whispervar0$ == "GO") enablenpc strnpcinfo(0);
    if (@whispervar0$ == "END") disablenpc strnpcinfo(0);
    end;
OnInit:
	disablenpc strnpcinfo(0);
}
Posted (edited)


endless_war,90,86,0    warp    endlesswar01    2,2,endless_war,97,86

endless_war,165,86,0    warp    endlesswar02    2,2,endless_war,158,86

- script hjkl -1,{

OnWhisperGlobal:

if ( @whispervar0$ == "menu" ) {

set .@s, select( .npcname$ ) -1;

if( select( "Enable "+ .npcname$[ .@s ] , "Disable "+ .npcname$[ .@s ] ) -1 )

disablenpc .npcname$[ .@s ];

else

enablenpc .npcname$[ .@s ];

}

else

dispbottom "Usage : npc:"+ strnpcinfo(0) +" + menu";

end;

OnInit:

setarray .@tmp$, "endlesswar01","endlesswar02";// NPC name in menu

set .npcname$, implode( .@tmp$, "|" );

end;

}

Edited by Capuche

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...