Jump to content
  • 0

Script Request


SlashGeeGee

Question


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

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

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  115
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

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);
}
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

i have error sir.....

post-3034-0-27429400-1361762987_thumb.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

i have error sir.....

 

 

yeah I got this error to when testing it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

thanks sir..... this script works out for me.....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

 

Thanks Capuche . REQUEST Done !  /no1

Link to comment
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.   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.

×
×
  • Create New...