Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 05-21-2001, 11:03 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Angry About weapons...(stefan please respond)

Ok well I am trying to make a way were hte system weapon will update for everyone when I update the system weapon...

I have tried this in the npc server...

join system

the in system I have something like

//#CLIENTSIDE
if(playerenters&&isweapon&&!hasweapon(-system)){
toweapons -system
}
//Rest of system coding...


when I do this it gives me a message like
illegal data or something like that and disconnects me

on rc it says
Frolic_Admin2 has added weapon (Hacker?)

so then on rc I have to
/open Frolic_Admin2
then I have to warp my self befor I can get back on

what can I do to make it work for the system weapon
__________________
Thanks,
-KJL
  #2  
Old 05-22-2001, 03:16 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool so..

so I should do something like

if(playerenters&&isweapon&&!hasweapon(-system)){
toweapons -system
}
//#CLIENTSIDE
//Rest of system coding...

I am going to test it out later on tonight... If I get any more problems I will post them
__________________
Thanks,
-KJL
  #3  
Old 05-22-2001, 05:18 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
NO! Nothing that goes toweapons should have //#CLIENTSIDE anywhere in the script. When an NPC goes toweapons it takes on a special form of clientside-ness.
__________________
Eric Kraft
  #4  
Old 05-22-2001, 09:41 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Yes weapons are special
When the toweapons thing is called then
the whole npc script is taken as weapon
script and copied to database + sent to the player.

You can have //#CLIENSIDE stuff for the npc,
but it will not appear in the weapon.
Don't call 'toweapons' on client-side, that
will be recognized as cheating and you will
be disconnected.
  #5  
Old 05-22-2001, 10:20 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
addweapon is just adding the name of the weapon
to the weapon list of the player, so it doesn't change
weapons, and only works when the weapon already
exists
  #6  
Old 05-23-2001, 02:20 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
Weapons are automatically updated whenever a player reconnects. I think that's as easy as it gets...
__________________
Eric Kraft
  #7  
Old 05-25-2001, 05:30 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
I thought you couldnt use join when your dealing with weapons...
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
  #8  
Old 05-27-2001, 12:21 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
get out the advil

You guys r giving me a head ache w/ all this script stuff! 0.o
  #9  
Old 05-27-2001, 07:33 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
Re: get out the advil

Quote:
Originally posted by haunter
You guys r giving me a head ache w/ all this script stuff! 0.o
Then dont read the stuff that we say on the NPC server topic. lol
__________________

subliminal message: 1+1=3
  #10  
Old 10-25-2001, 12:17 PM
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
The Database should be more accesible to all servers.

it would help a great deal I believe.

I never heard of addweapon until recently.

it prabably should be the only command used.

I mean why not just make adding weapons to the database something staff do. rather than adding it every time anyone gets any weapon with toweapons.

once is enough.. sheesh....


/added

uh... oops
Im Rogue Shadow
thnx past for letting me use this. =)
  #11  
Old 10-25-2001, 06:58 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
wow this post is really old... Back when I was first learning how to script with the npc server...

humm and you brought it back :-\

lol..
__________________
Thanks,
-KJL
  #12  
Old 10-26-2001, 03:14 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
Quote:
Originally posted by KJS
wow this post is really old... Back when I was first learning how to script with the npc server...

humm and you brought it back :-\

lol..

lol yeah I never look at dates I just ran a search.


I never scripted for p2p so It's new to me lol.

It's lousy that only guys with p2p worlds accepted can even hope to learn to script for p2p.

Without a way to script it and test it offline you just can't do it. just like you can't script for online if you only have offline.



I gotta get my own upgraded account soon lol

signed,

Rogue Shadow

Last edited by Saga2001; 10-26-2001 at 03:20 AM..
  #13  
Old 10-26-2001, 06:29 AM
ZORG1986 ZORG1986 is offline
Registered User
ZORG1986's Avatar
Join Date: Jul 2001
Location: England - Yes thats the small Island in Europe that Ownz you all.
Posts: 783
ZORG1986 is on a distinguished road
Send a message via ICQ to ZORG1986 Send a message via AIM to ZORG1986
Actually weapons arnt updated each time a player logs on
When someone changes it on NPC Server Control its automaticaly updated to every play carrying it, there is no need to relog on to get the new weapon :-P Great for testing weapons online quickly
__________________


Zorg (Era Staff) - Contact : [email protected]
  #14  
Old 10-26-2001, 06:40 AM
ssjg2k123 ssjg2k123 is offline
Registered User
Join Date: Oct 2001
Location: USA
Posts: 85
ssjg2k123 is on a distinguished road
Send a message via AIM to ssjg2k123
heh
__________________

 


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:25 PM.


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