Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-29-2001, 08:54 PM
funnylinkp2p funnylinkp2p is offline
Registered User
Join Date: Nov 2001
Location: Ohio
Posts: 105
funnylinkp2p is on a distinguished road
Send a message via AIM to funnylinkp2p
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
__________________
[img]http://rick.*******ers.net/ss/users/funnylink/[/img]
Reply With Quote
  #2  
Old 12-29-2001, 08:54 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
P2P or non-P2P?
__________________

Reply With Quote
  #3  
Old 12-29-2001, 08:57 PM
funnylinkp2p funnylinkp2p is offline
Registered User
Join Date: Nov 2001
Location: Ohio
Posts: 105
funnylinkp2p is on a distinguished road
Send a message via AIM to funnylinkp2p
Non p2p
__________________
[img]http://rick.*******ers.net/ss/users/funnylink/[/img]
Reply With Quote
  #4  
Old 12-29-2001, 09:10 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
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.
__________________

Reply With Quote
  #5  
Old 12-29-2001, 09:11 PM
funnylinkp2p funnylinkp2p is offline
Registered User
Join Date: Nov 2001
Location: Ohio
Posts: 105
funnylinkp2p is on a distinguished road
Send a message via AIM to funnylinkp2p
ok
__________________
[img]http://rick.*******ers.net/ss/users/funnylink/[/img]
Reply With Quote
  #6  
Old 12-29-2001, 09:15 PM
funnylinkp2p funnylinkp2p is offline
Registered User
Join Date: Nov 2001
Location: Ohio
Posts: 105
funnylinkp2p is on a distinguished road
Send a message via AIM to 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 maybe you can revise it
__________________
[img]http://rick.*******ers.net/ss/users/funnylink/[/img]
Reply With Quote
  #7  
Old 12-29-2001, 09:18 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
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 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.
__________________

Reply With Quote
  #8  
Old 12-31-2001, 01:21 PM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
This is easy >.<

I was actually gonna do one of these for my upcoming server =(
Reply With Quote
  #9  
Old 12-31-2001, 04:59 PM
LordMatt LordMatt is offline
V Avatar
LordMatt's Avatar
Join Date: Jun 2001
Location: Texas
Posts: 954
LordMatt is on a distinguished road
Send a message via AIM to LordMatt
*tests online*
__________________
-Matt
Reply With Quote
  #10  
Old 12-31-2001, 05:18 PM
DragonX2 DragonX2 is offline
Graal2002 Addict
DragonX2's Avatar
Join Date: Dec 2001
Location: NY
Posts: 0
DragonX2 is on a distinguished road
Send a message via AIM to DragonX2 Send a message via Yahoo to DragonX2
Can someone give me it for p2p servers?
__________________
Reply With Quote
  #11  
Old 12-31-2001, 05:30 PM
LordMatt LordMatt is offline
V Avatar
LordMatt's Avatar
Join Date: Jun 2001
Location: Texas
Posts: 954
LordMatt is on a distinguished road
Send a message via AIM to LordMatt
Quote:
Originally posted by DragonX2
Can someone give me it for p2p servers?
so I test it online for ya
__________________
-Matt
Reply With Quote
  #12  
Old 01-05-2002, 12:25 AM
Charles Charles is offline
Registered User
Join Date: Mar 2001
Location: !!!USA!!!
Posts: 78
Charles is on a distinguished road
Send a message via AIM to Charles
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.
__________________
InfernoDragon
The real one. ;-)
Reply With Quote
  #13  
Old 01-05-2002, 05:12 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
...

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

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #14  
Old 01-05-2002, 07:31 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
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 =(
Reply With Quote
  #15  
Old 01-09-2002, 05:08 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Childs play

Look good. With much confusion and practice you could get that into one server string.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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