Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   ok ..... (https://forums.graalonline.com/forums/showthread.php?t=6812)

Louis_one 07-07-2001 07:31 PM

ok .....
 
What is a script for a npc when the player chat a player's account and fired the weapon the account chatted will warp in a level:p

ownerofbabylon 07-07-2001 08:14 PM

umm, i dont think u can do that on a free server.

Brady2 07-08-2001 12:30 AM

-Posted by Jadis

This is NPCServer but you could do..

NPC Code:

if (playertouchsme) {toweapons Jail;hidelocal;}
if (weaponfired) say2 //Might go off of the scroll
For this weapon to work#b
You must say jail then#b
the player's account#b
name. For example,#b
jail <accountname>.;
if (playerchats&&startswith(jail,#c)) {
tokenize #c;
if (tokenscount>=2) {
with (getplayer(#t(1))) setlevel2 jail.graal,30,30;
}
}



Anyway I think that should work...

fuzie 07-08-2001 12:43 AM

In

fuzie 07-08-2001 12:46 AM

There should be a auto-jail warper if anyone touches it it warps them to jail auto-matically......if you were to make it so that peeps couldn't go in then hackers with lat and all would be auto-jailed.................................What is Graal coming to these days.......
I enjoyed the classic server and everything when graal was still in the 1300's.....

Merlin 07-08-2001 01:01 AM

if you make a system npc
like
timeout=.5;
if (timeout&&#s(server.warp)==#a) {
setlevel2 blah.graal;}

and the npcw

if (weaponfired&&!on) {
set on;
setplayerprop #c,Off.;
}
else
if (weaponfired&&on) {set off;
setplayerprop #c,On;
}

if (on) {
if (playerchats&&strequals(#c, ) {setstring server.warp,#c;
setplayerprop #c,Warped;
unset on;
}
not sure about the system npc part (first part)


All times are GMT +2. The time now is 09:58 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.