![]() |
Staff Warping
Does anyone know the script for the Warper Birdbird_0 has? The script MUST work so that if someone has the NPC Staff Warper, and they say warpto x y levelname.graal it warps them there and while its warping them there it uses warp3.gani and warp4.gani (just like Birdbird_0 uses, please tell me, PM me or something)
Or just post a reply on here with the script. |
Um. I have one. This code will only work for a free server, though:
NPC Code: I may have setlevel2 wrong. I think its level,x,y but it might be x,y,level... Oh well. |
if (playerchats&&startswith(#c,warpto)) {
setani warpani,; } because it's just using rc warpto |
Can you tell me the whole script by like picking it up and it going into your items as Staff Warper?
|
Re: Staff Warping
Quote:
your account rights get changed and it allows you to use it |
here's a small and simple one.
//NPC made by Josey Hunt
if (playertouchsme) {toweapons Level Warper;hidelocal } if (weaponfired) {setlevel #c.graal} it doesnt have the x,y positions but that would be easy to add. |
Im not taking about a simple warpto :grrr: I want it to use warp3.gani when the person says warpto x y levelname.graal and when they get in that level I want warp4.gani to start nobody knows? =(
|
Why didn't you say so?
okay, I cant figure that one out, wait, yes I can....
try this: if (playertouchsme){ toweapons MEGA WARP THING!; } if (weaponfired){ set warping; freezeplayer 2; setani warp3.gani,; setlevel2 #c.graal; } //Then put this in every level: if (playerenters&&warping){ freezeplayer 2; setani warp4.gani,; unset warping; } -Rebel95 |
BRB im gonna try that, I hope it works =D
|
When i put that script in on the setlevel2 #c.graal it said error: Expected format string,real,real
|
okay, well, try this:
if (playertouchsme){ toweapons Piece 'o' Crap; } if (weaponfired){ set warping; freezeplayer 2; setani warp3.gani,; setlevel2 #c.graal,#c,#c; } //Then put this in every level: if (playerenters&&warping){ freezeplayer 2; setani warp4.gani,; unset warping; } |
Heh, can you make it so I dont have to fire it (press D) when i wanna warp but instead if i have it in my inventory than i will be warped?
|
"don't use flags in npcws" -kai
use this.started=true this.started=false or something |
Quote:
Hmm i guess I will make it... brb |
Quote:
if(hasweapon(warper)&&playerchats&&strequals(#c,le vel1.graal)){ action; } you can fix that up but just use it to check for the weapon. Wait that doesnt check for the current weapon. Sorry ignore all that heh. do this if(weaponfired){ //checks if weapon fired set warper; } and then do check for what level the player says (and maybe x and y if u wanna be cool) As you can see im getting better at programming but have no way to express what im saying. I guess the next post I can answer I will make the code and put it on and not talk :( |
Its not a mean face, and they are nice to me because I am nice to them im not a mean person. I just put that face cause everybody was posting the regular warpto and not the one i want although they are trying :D
|
sowwy
|
if (playertouchsme) {
this.action=0; toweapons Warper; say2 HOW TO USE:#b Use just like a RC account.#b Say warpto x y to warp to a #b certain x and y cordinate on #b the board.#b Say warpto x y levelname.graal #b to warp to a certain x,y and #b level name.; } if (playerchats&&isweapon) { tokenize #c; if(strequals(#t(0),warpto)){ if(tokenscount==4){ this.x=strtofloat(#t(1)); this.y=strtofloat(#t(2)); setlevel2 #t(3),this.x,this.y; } if(tokenscount==3){ this.x=strtofloat(#t(1)); this.y=strtofloat(#t(2)); setlevel2 #L,this.x,this.y; } }} |
I dont know why people have Staff weapons. Its a waist of time that could be spent on more important things like eating and sleeping. Why waist ANY time making them when there is that WONDERFUL device that stefan made that outdoes them! REMOTE CONTROL! :eek: :rolleyes:
|
Amazingly, this guy's constantly bugging me on Graal. He can't wrap his head around setani warp3,; going before the setlevel, apparently...because nothing runs after a setlevel
|
I'm not gonna script out the whole thing, but I will tell how to do the ganis...
1st off, before the setlevel2, put the first gani... 2nd, also before the setlevel2, put this.mode=1 3rd... if (playerenters && this.mode=1){setani the-gani,param;this.mode=0;} Tada =/ |
Quote:
which is why that old jailing script that every n00b server uses doesn't work setlevel2 jail.graal,20,20; setstring server.jailaccount,; I think its funny that they all stole the same script...and not a single one fixed it |
| All times are GMT +2. The time now is 06:32 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.