Graal Forums

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

funnylinkp2p 12-29-2001 08:54 PM

Sweet script
 
If any npc makers/1337 people...this npc would own to have
1.A teleporter that could summon people to where your position is
2. When person says summon (accountname) it then asks the person if they want to be summoned
3.Has to be like a wizard class
4.In certain parts like heart quests it would be disabled so people couldn't cheat
5.It would use server junctions
6.It would own
7.I want the script
8.Make it
9.Please make it :D

grim_squeaker_x 12-29-2001 08:54 PM

P2P or non-P2P?

funnylinkp2p 12-29-2001 08:57 PM

Non p2p

grim_squeaker_x 12-29-2001 09:10 PM

NPC Code:
//Summoner's Script
if (playerchats) {
if (startswith(summon,#c)) {
addstring server.summoning,#e(7,-1,#c);
addstring server.extrasummoninfo,#a #L #v(playerx) #v(playery);
}
}


NPC Code:
//In-System NPC script
if ((created||timeout)&&isweapon) {
this.temp=lindexof(server.summoning,#a);
if (this.temp>-1&&this.tempp==0) {
tokenize #I(server.extrasummoninfo,this.temp);
setplayerprop #c,#t(0) is trying to summon you, if you say 'yes' you will be brought to him.;
this.tempp=1;
}
timeout=.05;
}
if (playerchats) {
if (strequals(#c,yes)&&this.tempp==1) {
tokenize #I(server.extrasummoninfo,this.temp);
deletestring server.summoning,this.temp;
deletestring server.extrasummoninfo,this.temp;
this.tempp=0;
setlevel2 #t(1),strtofloat(#t(2)),strtofloat(#t(3));
}
}

I don't know if it'll work though, this is the first time I'm using the string arrays.

funnylinkp2p 12-29-2001 09:11 PM

ok

funnylinkp2p 12-29-2001 09:15 PM

what do i have to say? its not really working for me right now maybe you got a hitch in the npc but it would be hard making it that fast :D maybe you can revise it

grim_squeaker_x 12-29-2001 09:18 PM

Quote:

Originally posted by funnylinkp2p
what do i have to say? its not really working for me right now maybe you got a hitch in the npc but it would be hard making it that fast :D maybe you can revise it
It's "Summon accountname", although I don't think it'll work offline, and you'll need to give everyone the second NPC if you want it to work.

ArmadeusWarlock 12-31-2001 01:21 PM

This is easy >.<

I was actually gonna do one of these for my upcoming server =(

LordMatt 12-31-2001 04:59 PM

*tests online*

DragonX2 12-31-2001 05:18 PM

Can someone give me it for p2p servers?

LordMatt 12-31-2001 05:30 PM

Quote:

Originally posted by DragonX2
Can someone give me it for p2p servers?
so I test it online for ya

Charles 01-05-2002 12:25 AM

LoL. I hate to tell u, but your idea is way too late.

I made something called the "Player Caller" on elven lands a long time ago. It worked just like what u said mainly.

Saga2001 01-05-2002 05:12 AM

...
 
on p2p that would be really retarded to make...purely cause you would have to do a lot of triggeractions...

LilNiglet 01-05-2002 07:31 AM

Re: ...
 
Quote:

Originally posted by Saga2001
on p2p that would be really retarded to make...purely cause you would have to do a lot of triggeractions...
No... On P2P, that script would be just about as long as this post. I just can't find my NPC server scripting thing, i cannot remember a command =(

adam 01-09-2002 05:08 AM

Childs play ;)

Look good. With much confusion and practice you could get that into one server string.

RICEJERRRY4 01-09-2002 10:09 AM

evil server
 
Yo grim_squeaker_x Andor is using that npc on thier server :cool:
Just to let u know

aesquivel 01-09-2002 10:47 AM

lolz
hes l8er once again

Kumada 01-09-2002 06:03 PM

With p2p you do not have to use strings..
Just Getplayer and tokenize #c

grim_squeaker_x 01-09-2002 06:33 PM

Re: evil server
 
Quote:

Originally posted by RICEJERRRY4
Yo grim_squeaker_x Andor is using that npc on thier server :cool:
Just to let u know

I couldn't care less.

Slaktmaster 01-09-2002 09:10 PM

Hehe.

Grim, you mind if I steal that script and edit it a bit? ;)

I would do it myself but I am too lazy. :(

btedji 01-09-2002 10:09 PM

I made a script like this once

I wonder if it could be used on non p2p to get a players data like warp them to your level then test their xy to get their index copying their data and then warping them back to their original level.

Slaktmaster 01-10-2002 10:56 PM

Quote:

Originally posted by Slaktmaster
Hehe.

Grim, you mind if I steal that script and edit it a bit? ;)

I would do it myself but I am too lazy. :(


Xaviar 01-10-2002 11:14 PM

=/ You all stink =P We've had this on Babylon for a while, just not publically released, yet...Well, not exactly like this, but close

Charles 01-13-2002 04:16 AM

Quote:

Originally posted by Xaviar
=/ You all stink =P We've had this on Babylon for a while, just not publically released, yet...Well, not exactly like this, but close
I'd hate to tell you, but when my Player Caller was put up on EL a very long time ago, it was publically released. The outcome was horrible when someone desided to use it to call people to jail.


I really dont know if babylon was up then or not. But I am guessing that it wasnt, but even if it was, we probably still had this type of NPC first.

grim_squeaker_x 01-13-2002 04:32 AM

Quote:

Originally posted by Slaktmaster
Gah, I missed that. Just feel free to take it, all scripts I post on the forums are free for all to take, edit, destroy, horiffyingly mutilate or whatever they feel like doing with it.

MrSmiles 01-13-2002 07:23 AM

YAY :)

:D :rolleyes: :eek: :) :(

Slaktmaster 01-13-2002 08:08 AM

Quote:

Originally posted by grim_squeaker_x
horiffyingly mutilate
That's all I need, thank you!

joseyisleet 01-13-2002 10:25 AM

Quote:

Originally posted by Charles

The outcome was horrible when someone desided to use it to call people to jail.
this type of NPC first.

if (!strequals(#L,jail.nw)){
warp player stuff here;
}

Put that in the NPC that the player uses to `call` the other player. ;]


All times are GMT +2. The time now is 05:04 PM.

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