![]() |
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! |
Re: A few Questions
Quote:
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. |
not to be mean but don't expect to get every answer given to you, documents exist for a reason
|
<Comment removed>
|
Spark, Was that comment really necissary?
|
does the removeweapon command only work online?
And is this the format? if (playertouchsme){ removeweapon:Mech Spyder; } |
Quote:
and its removeweapon weaponname; and you need an npc server for that |
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: |
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 :) |
Quote:
|
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 |
Quote:
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 ":" |
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
|
Quote:
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. |
Quote:
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:
Quote:
|
Quote:
I think they might be in the commands.rtf, but I'm not entirely sure. newfeatures2001/2.txt is also a good place to look... |
Quote:
I think making a pw is a good way to learn.. |
I looked in the .txt's and .rtf's but no help.....
I also searched by keyword as many times and words that i could think of but no luck. Could someone plz give me some examples for the awnsers to my above questioms PLZ! |
Quote:
NPC Code: |
i think this topic should be closed, yes asking questions IS a good way of learning but you wont learn anything if you keep on asking for help too much
|
| All times are GMT +2. The time now is 03:07 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.