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 02-02-2002, 02:48 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Horse Caller

Ok, this is a Horse Caller for Mithica (So don't use it) =D
But, everyone is calling a hose, and lagging up levels, with it...
I tried to edit it, but now it doesn't even go to the players inventory... I want it to take off 25 mp for every horse called... And, can you set it up so it goes to the players inventory right



if (playersays(buy horse caller)&&playerrupees=>600&&!hasweapon(Horse Caller)) {
toweapons Horse Caller;
setstring horse,0;
playerrupees=-600;
}
if(playeronhorse&&strequals(#c,save horse 1)){
setstring horse,#5;
setplayerprop #c,Horse 1 Saved;
}
if(!firedonhorse&&strequals(#c,call horse 1)){
tokenize #s(horse);
puthorse #t(0),playerx,playery;
setplayerprop #c,Horse Called;
}
if(playeronhorse&&strequals(#c,save horse 2)){
setstring horse2,#5;
setplayerprop #c,Horse 2 Saved;
}
if(!firedonhorse&&strequals(#c,call horse 2)){
tokenize #s(horse2);
puthorse #t(0),playerx,playery;
setplayerprop #c,Horse Called;
}
if(playeronhorse&&strequals(#c,save horse 3)){
setstring horse3,#5;
setplayerprop #c,Horse 3 Saved;
}
if(!firedonhorse&&strequals(#c,call horse 3)){
tokenize #s(horse3);
puthorse #t(0),playerx,playery;
setplayerprop #c,Horse Called;
}
if(weaponfired){
say2 When on a horse say "save horse #"
#byou can save up to 3 horses.
#bSay "call horse #" to call that
#bhorse.#bEx:save horse 1.;
__________________
Reply With Quote
  #2  
Old 02-02-2002, 03:28 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
arg, someone help me... Hey Falcor, if your on, can ya?
__________________
Reply With Quote
  #3  
Old 02-02-2002, 04:06 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
what do you want it to do?/
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #4  
Old 02-02-2002, 04:16 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
Re: Horse Caller

if(weaponfired&&!strequals(#c,call horse 1)&&!strequals(#c,call horse 2)&&!strequals(#c,call horse 3)){
say2 When on a horse say "save horse #"
#byou can save up to 3 horses.
#bSay "call horse #" to call that
#bhorse.#bEx:save horse 1.;
} else if (weaponfired&&(strequals(#c,call horse 1)||strequals(#c,call horse 2)||strequals(#c,call horse 3))) {
if (strequals(#c,call horse 1)){
puthorse #s(horse),playerx,playery;
setplayerprop #c,Horse Called; }
if(strequals(#c,call horse 2)){
puthorse #s(horse2),playerx,playery;
setplayerprop #c,Horse Called; }
if(strequals(#c,call horse 3)){
puthorse #s(horse3),playerx,playery;
setplayerprop #c,Horse Called; }
}

if (playerchats&&strequals(#c,buy horse caller)&&playerrupees=>600&&!hasweapon(Horse Caller)) {
toweapons Horse Caller;
setstring horse,;
playerrupees=-600;
setplayerprop #c, Horse Caller was bought;
}

if(playeronhorse) {
if (strequals(#c,save horse 1)){
setstring horse,#5;
setplayerprop #c,Horse 1 Saved; }
if(strequals(#c,save horse 2)){
setstring horse2,#5;
setplayerprop #c,Horse 2 Saved; }
if(strequals(#c,save horse 3)){
setstring horse3,#5;
setplayerprop #c,Horse 3 Saved; }
}
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #5  
Old 02-02-2002, 04:19 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
yuxor, horiible. uhm. Geeze. this should be reall short and simple. not long and drudged out. MP cannot be taken away on a p2p server (dont ask me, ask stefan)

NPC Code:



if(playerchats && strequals(#c,buy horse caller) && playerrupees >= 600) {
playerrupees -= 600;
toweapons Horse Caller;
}
if(weaponfired) {
say2 When on a horse say "save horse #"
#byou can save up to 3 horses.
#bSay "call horse #" to call that
#bhorse.#bEx:save horse 1.;
}
if(isweapon) {
if(playerchats) {
tokenize #c;
this.horse = strtofloat(#t(2));
if(strequals(#e(0,10,#c),save horse) && playeronhorse) {
if(this.horse in {1,2,3}) {
setstring client.horse#v(this.horse),#5;
setplayerprop #c,Horse saved (#v(this.horse));
}
}
if(strequals(#e(0,10,#c),call horse)) {
if(this.horse in {1,2,3} && strlen(#s(client.horse#v(this.horse))) > 0) {
puthorse #s(client.horse#v(this.horse)),playerx,playery;
setplayerprop #c,Horse #v(this.horse) called;
}
}
}
}





Just made it up now but it should work, I am feeling a bit charitable today ;p
__________________

subliminal message: 1+1=3

Last edited by Falcor; 02-02-2002 at 04:42 AM..
Reply With Quote
  #6  
Old 02-02-2002, 04:26 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
Quote:
Originally posted by Falcor
yuxor, horiible. uhm. Geeze. this should be reall short and simple. not long and drudged out.

i agree, i just dont feel like messing with it
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #7  
Old 02-02-2002, 09:03 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
__________________

subliminal message: 1+1=3
Reply With Quote
  #8  
Old 02-03-2002, 12:58 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
agh... this is for non-p2p >.< I hate when I ask for scripts and everyone thingks it is for p2p :o
__________________
Reply With Quote
  #9  
Old 02-03-2002, 01:23 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
Quote:
Originally posted by Kaimetsu


And I hate when people ask for non-P2P scripts. It's a dead technology, I don't bother working with it anymore.
i wish omeone would let me tryout NPCs with NPC Server
ive never used it and would like to learn how to use it
every graal main server will use it so i think it would benifit me to learn how to at least use the basics of it
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #10  
Old 02-03-2002, 01:27 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Quote:
Originally posted by Kaimetsu


And I hate when people ask for non-P2P scripts. It's a dead technology, I don't bother working with it anymore.
most of people who play Graal play non p2p.. and most p2p servers are worthless anyways, no one plays on them.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #11  
Old 02-03-2002, 02:00 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Quote:
Originally posted by Kaimetsu


Interesting definition of "worthless". Worthless for you or worthless to the people who are getting money from them and not from non-P2P counterparts?

The point is that the only environment where one could even think about making a professional-looking world is that of a P2P server. If any scripters want to lounge in the dark ages and eschew all the latest developments to our art then that's their problem. They won't get this script monkey's help.
not fully worthless.
but worthless for the ones who make.
I think Providence is a good playerworld, other then the jailing rules.
But there are not much people who will leave G2k1 and make Providence their home. If you do not mind the fact that you will not have many people on your server, then have fun and make it p2p.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #12  
Old 02-03-2002, 02:42 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
non-p2p servers are very importiant because without them, players won't see how good p2p servers are, and won't upgrade
__________________
Reply With Quote
  #13  
Old 02-03-2002, 03:01 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Quote:
Originally posted by Kaimetsu
Fact: P2P playerworlds have far more potential than free ones. It's all a matter of whether you want to make a good world or have lots of players. I, having standards, would prefer to make a good world.
picky
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #14  
Old 02-03-2002, 03:02 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
and what p2p server is good? there either laggy, poor levels, poor npc's, or someone d/c the npcserver
__________________
Reply With Quote
  #15  
Old 02-03-2002, 04:42 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
on a non-p2p server, you don't have to wait like 2 days for stefan to restart a npc server... on a non-p2p server, you don't have to learn how to script Server Side, and CliantSide
__________________
Reply With Quote
  #16  
Old 02-03-2002, 04:45 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
but on a p2p server with NPC Server there are more scripting commands and things can be scripted on them which cant be on non p2p servers
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #17  
Old 02-03-2002, 05:25 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Kaimetsu
Fact: P2P playerworlds have far more potential than free ones. It's all a matter of whether you want to make a good world or have lots of players. I, having standards, would prefer to make a good world.
There are hardly such things as potential p2p worlds...

No pay server besides 2001 gets it player account above
20 regularly ...
Reply With Quote
  #18  
Old 02-03-2002, 05:29 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Kaimetsu


So?
Its a waste of bandwidth ...

And the multiple test servers should just be put
together ...
Reply With Quote
  #19  
Old 02-03-2002, 05:31 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
I think they should do away with the p2p period....Its just a get rich quick scheme....free servers should be allowed to use the p2p commands.....its kind of stupid that they cant use hats or anything....I like bacon
__________________
Reply With Quote
  #20  
Old 02-03-2002, 11:50 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
how does Stefan provide us with new releases of Graal then, how does he pay for all of this do you think? used to out of his own pocket... now iwth p2p, it helps him pay for most things
__________________
Reply With Quote
  #21  
Old 02-03-2002, 12:29 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
Do you know how many people that play non-p2p dont even know that there are hats on p2p servers? I would say around 700 people. Do you know how many of 700 would buy p2p accounts? Around 80 people. Do you know how much money 8 p2p accounts would be if bought in a year?Estimated around 2150. You are still right, I am just saying. Maybe there should be only 1 server that people can play on free that has hats and all p2p stuff but is limited to 20-30 players?
Reply With Quote
  #22  
Old 02-03-2002, 12:38 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
Quote:
Originally posted by Kaimetsu


Possibly. I don't really know, I just know that I don't script for non-P2P.
Tired of non-p2p scripting I am guessing. There is only 1 thing that bothers me about non-p2p having stuff and that is multi-directional and multi-framed gani. The rule will never be changed so I usually choose to be unspoken.
Reply With Quote
  #23  
Old 02-03-2002, 05:08 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Lol, some of the people make me sick. "oh liek p2p shouldnt be up cuz liek ish rally ghey cuz we dont get to uze teh p2p scripting abilities"

Pay-to-play servers will never die. It gathers in Stefan's money to pay Unimaxid for the sites and other stuff. It makes the money so if Stefan loses one of his programming install discs and has to reformat he can go out and buy some. The money brings him back to Graal to improve it, also so does the fun. ;D Simply pay-to-play will not die because to much stuff is "tied" into the pay-to-play servers. Stefan you should do what I stated in a previous post. Make one time trialed server that's non pay-to-play, they have oh say 30 days to "try it out". Then they have an option to get an upgraded account. The rest of the servers should be pay-to-play. I mean, hell, it doesn't cost that much. Everyone who plays Graal has a computer, so you can't say "Oh I'm to poor to get an upgraded account.". Even though this is my opinion (and a few others so it seems), I like to play Graal, I bought a pay-to-play account. Which other games do you know that is as "cheap" as Graal to play? R@gn@rok Online will be going pay-to-play (I think it'll be something like $150 a year). So you can't say that you can play that for free.

No clue why it wouldn't let me use "Rag's" normal name.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #24  
Old 02-03-2002, 08:08 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
This aint josey it's chicken

Hehe josey Shut up woot
and on this Scripty thingy just use
token size E.g. token size your text so like
it's hell shorter and just do playermp-=1
or something like that
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #25  
Old 02-04-2002, 12:36 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
Quote:
Originally posted by Kaimetsu


Have you really thought about this? Have you ever gone to a server to ask if they'll host your online game for free? Have you any idea what would happen to Graal if it didn't have the cash from P2P?
I could host an online game for myself, but there is no GServer =(

and, if graal didn't get the cash, it would die and we would all go play starcraft or 1.39

or maybe, Stefan could make graal open-source as a last ditch effort to save graal from dissapearing into the midsts of time (that would be )
Reply With Quote
  #26  
Old 02-04-2002, 01:18 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
ohmy @.o btw my script should work for non-p2p anyhow. and you can remove the client.stringname if that IS the case.

P2P server ofer a vast potential for scripting hieght. Like storing string inside NPC. Why argue about this? I mean really, Metaphore time. Scripting for P2P is like Making games for Xbox or PS2. Scripting for non-P2P howver, is like making games for NES or Atari.
__________________

subliminal message: 1+1=3
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 11:37 PM.


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