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.


All times are GMT +2. The time now is 04:20 AM.

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