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 11-29-2002, 04:14 AM
billybob53 billybob53 is offline
Banned
Join Date: Nov 2002
Location: Usually in wy own world but at the moment in England
Posts: 33
billybob53 is on a distinguished road
Send a message via AIM to billybob53 Send a message via Yahoo to billybob53
Unhappy A few Questions

Hi, Im not a newbie scripter, and am workign on a playerworld for Graal.

I just have a few questions:

1.) How do you use Sin and Cos to make an NPC move in a circular angle?

2.) How do you make a Guild?

3.) Whats the command to remove a weapon forom the player's weaponlist?

4.) How do you make an NPc affect a .txt file?

Thanks for helping!
Reply With Quote
  #2  
Old 11-29-2002, 05:35 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Re: A few Questions

Quote:
Originally posted by billybob53
Hi, Im not a newbie scripter, and am workign on a playerworld for Graal.

I just have a few questions:

1.) How do you use Sin and Cos to make an NPC move in a circular angle?

2.) How do you make a Guild?

3.) Whats the command to remove a weapon forom the player's weaponlist?

4.) How do you make an NPc affect a .txt file?

Thanks for helping!
1.) Radians and such...(I think...)

2.) Through an NPC? You'll need an NPCserver.
If so, you need to have the txt files in the guilds section of the playerworld's FTP, and you'll need to use the addguildmember and removeguildmember commands to add and remove people from that guild file.

3.) "removeweapon weapon name"
This is an NPCserver only command as well.

4.) Affect in what way? You could use the savelog commands to save information in a specific text file.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #3  
Old 11-29-2002, 09:17 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
not to be mean but don't expect to get every answer given to you, documents exist for a reason
Reply With Quote
  #4  
Old 11-29-2002, 08:10 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
<Comment removed>
__________________
--Spark911

Last edited by Falcor; 11-30-2002 at 02:06 AM..
Reply With Quote
  #5  
Old 11-30-2002, 02:06 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
Spark, Was that comment really necissary?
__________________

subliminal message: 1+1=3
Reply With Quote
  #6  
Old 11-30-2002, 03:48 AM
billybob53 billybob53 is offline
Banned
Join Date: Nov 2002
Location: Usually in wy own world but at the moment in England
Posts: 33
billybob53 is on a distinguished road
Send a message via AIM to billybob53 Send a message via Yahoo to billybob53
does the removeweapon command only work online?

And is this the format?

if (playertouchsme){
removeweapon:Mech Spyder;
}
Reply With Quote
  #7  
Old 11-30-2002, 04:32 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Falcor
Spark, Was that comment really necissary?
=/ i think it was, people who say they are good at things they arent annoys me


and its removeweapon weaponname; and you need an npc server for that
Reply With Quote
  #8  
Old 11-30-2002, 04:42 AM
billybob53 billybob53 is offline
Banned
Join Date: Nov 2002
Location: Usually in wy own world but at the moment in England
Posts: 33
billybob53 is on a distinguished road
Send a message via AIM to billybob53 Send a message via Yahoo to billybob53
QUOTE]and its removeweapon weaponname; and you need an npc server for that[/QUOTE]

so u put the script in the NPC but it needs an NPC server to operate then?

And 1 more thing...

"I used if (playerchats&&(blah)&&hasweapon(Mech Spyder)){
toweapons mech...... and so on....."

But it didn't work when the player Had the weapon called Mech Spyder or without the weapon mech spyder X_x

Help:grrr:
Reply With Quote
  #9  
Old 11-30-2002, 06:54 AM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
First of all you have to use this format:

if (playerchats && strequals(#c,text))

not

if (playerchats && (blah)) etc..

Well anyway.

I dont really understand you :

When the player says something, and has the weapon Mech Spider...he should get mech spider? I dont really follow.

Maybe it's just me, it's late

The only thing i could think you mean is...:

English: if the player says something and "does not" have the weapon Mech Spider, give the player mech spider...

Script:

if (playerchats && strequals(#c,text) && !hasweapon(mech spider)){toweapons Mech Spider;}

Note: toweapons only works offline.

If thats not what u meant then oh well. *signs off*

bai
Reply With Quote
  #10  
Old 11-30-2002, 07:41 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
Quote:
Originally posted by Python523

=/ i think it was, people who say they are good at things they arent annoys me
He probably only said that because he saw how badly newbie scripters are treated, these kinds of comments arent bettering it either. The newbie just need to realise its not your ignorance that annoys us, its just your lack of common sence, things like asking for entire script or a premade script they saw on BM...
__________________

subliminal message: 1+1=3
Reply With Quote
  #11  
Old 11-30-2002, 06:19 PM
billybob53 billybob53 is offline
Banned
Join Date: Nov 2002
Location: Usually in wy own world but at the moment in England
Posts: 33
billybob53 is on a distinguished road
Send a message via AIM to billybob53 Send a message via Yahoo to billybob53
i don't quite get your message falcor.... but nvm.

I was meant to put strequals in the script but i was rushing.


Im doing it in offline mode.
You have the weapon Mech Spyder and you goto the upgrade factory and i used this:

if (playerchats&&strequals(#c,Upgrade Mech Spyder)&&hasweapon(Mech Spyder)) {
removeweapon: Mech Spyder;
toweapons Mech Spyder 2;
}

if (weaponfired){
blah......
}


Note: This is in Offline mode and it won't work so help plz
Reply With Quote
  #12  
Old 11-30-2002, 07:39 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by billybob53
i don't quite get your message falcor.... but nvm.

I was meant to put strequals in the script but i was rushing.


Im doing it in offline mode.
You have the weapon Mech Spyder and you goto the upgrade factory and i used this:

if (playerchats&&strequals(#c,Upgrade Mech Spyder)&&hasweapon(Mech Spyder)) {
removeweapon: Mech Spyder;
toweapons Mech Spyder 2;
}

if (weaponfired){
blah......
}


Note: This is in Offline mode and it won't work so help plz

addweapon/removeweapon doesnt work in offline mode.
When you use addweapon/removeweapon (as Serverside) you dont need make it:

"addweapon:Mech Spyder"

just do it: addweapon/removeweapon <weaponname>,
without ":"
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #13  
Old 11-30-2002, 08:07 PM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
It still needs to be on an NPC Server driven environment... if you don't know anything about this you might want to get somebody to help you 1 on 1 and not try to make a player world... if you do, then you know where to go from here
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #14  
Old 11-30-2002, 11:59 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by HoudiniMan
It still needs to be on an NPC Server driven environment... if you don't know anything about this you might want to get somebody to help you 1 on 1 and not try to make a player world... if you do, then you know where to go from here
You're wrong..
When you're making a playerworld you will start to learn a lot of things.
Make a playerworld is a good way to get better.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #15  
Old 12-01-2002, 01:18 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by osrs


You're wrong..
When you're making a playerworld you will start to learn a lot of things.
Make a playerworld is a good way to get better.
NO.

Doing PROJECTS such as scripting things and making more levels is a good way to get better. Making some P.O.S. Playerworld (No offense or anything) is not guaranteed to enhance your skills, especially when you have people working for you.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
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 12:19 AM.


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