![]() |
question
[screen_name says:]
im new to NPC server scripting, so im trying to figure out what will work or not lets see, will this make me have 90 gralats, make me say "I am screen_name!!", and set my body to body5 (my favoritest btw)?? NPC Code: To be continued... (suspensfully isn't it) |
Yes, but only if you put it into an event, for example
if (created) { // the stuff you posted. } |
[screen_name says:]
well of course |
I'm gunna try get the .TXT file for NPC server Screen Name... that way w can learn a little
|
1 Attachment(s)
:megaeek: I found it on my computer, I thought I deleted it by mistake but here it is
|
[screen_name says:]
lets see, i found that file on my pc that i had dloaded from some site, anyway i have another question NPC Code: is the //#CLIENTSIDE in the right spot?? i haven't learned much about how to use it |
[screen_name says:]
lets see, another question with the "with(getplayer(account))" command, will it still do something even if they are offline NPC Code: why else would Stefan add the flag, playeronline?? |
If you want an example for with(getplayer) here's one I typed up in a min (I'm trying to see if I can get someone with NPC Server acess to let me test it)
It's my Noobalizer //NPC created by Jagen if (created) { // Initialize the attributes showcharacter; setcharprop #3,head0.png; setcharprop #C0,orange; setcharprop #C1,white; setcharprop #C2,blue; setcharprop #C3,red; setcharprop #C4,black; setcharprop #2,shield1.gif; shieldpower = 1; dir = 2; } if (playerchats&&startswith(noob,#c)) {tokenize #c;with(getplayer(#t(1)){ setplayerprop #C0,orange; setplayerprop #C1,orange; setplayerprop #C2,orange; setplayerprop #C3,orange; setplayerprop #C4,orange; setplayerprop #1,sword1.png; setplayerprop #2,shield1.png; setplayerprop #3,head0.png;} } |
[screen_name says:]
i just want to know how to use //#CLIENTSIDE |
hmm, I wist there was a npc program that is for NC and it shows ya how to convert simple scripts, then I could start converting my better ones
|
Quote:
You just put if (playerenters) addweapon System; and use NC to add the weapon to the Database. Quote:
|
Quote:
|
[screen_name says:]
will someone with NPC Server experience let me know if my last 2 scripts will work or not?? NPC Code: NPC Code: |
It won't.
|
Quote:
|
[screen_name says:]
okay, im working on divided kingdoms and i have npc server priveleges, so now im testing it out, but it doesnt work here is the script NPC Code: and this doesn't work, will someone explain |
NPC Code: If that's a weapon and it doesn't exist in any level it won't ever recieve playerchats, and even if it is in a level, it'll only recieve it when the player is in the same level. Plus, I've heard that with (getplayer(#a)) { doesn't work. |
Quote:
|
hey, e-mail me, [email protected], and i can help...
|
| All times are GMT +2. The time now is 09:01 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.