Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help the suckest scripter (https://forums.graalonline.com/forums/showthread.php?t=12085)

LordMatt 09-17-2001 12:33 AM

Help the suckest scripter
 
Whats the script for like where a person witha certain guild tag says "warp *accountname* to mining" and it warps that person there, but the place has already been set like their cant be random stuff. I wanted to see if I could test this offline on my self please help :(

ownerofbabylon 09-17-2001 03:50 AM

ummm:

if(playersays(Warper)){
toweapons Warper;
}

if (playerchats&&strequals(#c,Warpon)) {
set this.warp;
setplayerprop #c,;
}
if (playerchats&&strequals(#c,Warpoff)) {
unset this.warp;
setplayerprop #c,;
}
if (playerchats&&this.warp) {
setlevel2 #c,32,32;
setplayerprop #c,;
}

ownerofbabylon 09-17-2001 03:50 AM

or u could tokenize it so that they can specify the x and y on the level to be warped too

LordMatt 09-17-2001 06:48 AM

put that together cuz I lost you at or

LordMatt 09-17-2001 06:49 AM

that doesn't seem to help any...its like survivor thingy only I want it for another use

Krakken_2001 09-17-2001 07:04 AM

Quote:

Originally posted by LordMatt
that doesn't seem to help any...its like survivor thingy only I want it for another use
Unfortunately you need an NPC Server in order to do that. You would have to use an NPC weapon otherwise.

ownerofbabylon 09-18-2001 02:42 AM

If you cant figure it out from the stuff I gave you im sorry I cant help anymore, I dont script with NPC Server

Merlin 09-18-2001 04:52 AM

lord helmnut you just made basicly a warp ring ;\
i think i know what he means,

you want it so when like (Miner) says an account name it will warp that player there so everyone would need a npc asuming its a free server so for that npc
if (playerenters) {toweapons *system;
timeout = 1;
}
if (timeout) {
if (strequals(#s(server.getminer(#a))) {
setlevel2 mine.graal,30,30;
timeout = 1;
}
}


for the npc the (Miner) gets
if (playertouchsme) {toweapons Mine-Call;}
if (weaponfired) {
if (strequals(#g,Miner)) {
this.inuse=true;
say2 Say the accountname to be warped to the mines;
}
}
if (this.inuse==true) {
if (playerchats&&strequals(#c, )) {
setstring server.getminer,#c;
this.inuse==false;
}


so when you fire the weapon and say an account name it willl warp that person there
eg:/ if i say Merlin while the weapon is inuse the player with the account name Merlin (as long as they have the *system npc) they will be warped to 30 30 mine.graal

Merlin 09-18-2001 05:05 AM

Quote:

Originally posted by Kaimetsu


That's not bad, but this line: "if (strequals(#s(server.getminer(#a))) {" is slightly wrong.

darn, i'm learning, atleast :(

AlexH 09-18-2001 05:07 AM

Kaimetsu how did you get so good at scripting
your great at it
me wish i was as good at it as you
"can i have a loan of your brain for 10min"


All times are GMT +2. The time now is 09:16 AM.

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