Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 07-04-2002, 04:49 PM
Despo1 Despo1 is offline
Registered User
Join Date: May 2002
Location: G3rM4nY
Posts: 38
Despo1 is on a distinguished road
Send a message via AIM to Despo1
with() problem

also i want to read of a db npc and add the worth of the variable to the lokal script also i saw in some scripts:

NPC Code:

with(getnpc(Hat-Shops)){
hatc = strtofloat(#s(this.hatc#v(hatn)));
}



or

NPC Code:

with(getnpc(Hat-Shops)){
setstring server.temp,#s(this.hatc#v(hatn));
}
hatc = strtofloat(#s(server.temp));
setstring server.temp,;

__________________
Bl4h Si6n4tur3s sUx3n
  #2  
Old 07-04-2002, 05:29 PM
Despo1 Despo1 is offline
Registered User
Join Date: May 2002
Location: G3rM4nY
Posts: 38
Despo1 is on a distinguished road
Send a message via AIM to Despo1
here a example, this dont work too...

NPC Code:

if (created) {
setimg sign.png;
}
if (playertouchsme) {
with(getnpc(Control-NPC)){
setstring server.temp,#s(this.hat);
}
setstring this.hat,#s(server.temp);
say2
The newest Hat is #s(this.hat);
setstring server.temp,;
}

__________________
Bl4h Si6n4tur3s sUx3n
  #3  
Old 07-04-2002, 07:42 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
1) You dont need to set server flag w/ the with() operator.
2) with() MUST be serverside.
3) You can't call weapons w/ with() (not sure if youo were doing this. but I think you were)

Assumming you DO have an NPCs server..
__________________

subliminal message: 1+1=3
  #4  
Old 07-06-2002, 12:33 AM
Despo1 Despo1 is offline
Registered User
Join Date: May 2002
Location: G3rM4nY
Posts: 38
Despo1 is on a distinguished road
Send a message via AIM to Despo1
i use at my shophats, they use a control npc which i have controll to restock...
__________________
Bl4h Si6n4tur3s sUx3n
  #5  
Old 07-06-2002, 01:01 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
If you would like to store information on a Databased NPC, use THIS. You can set serverstrings in any script that is server-side.
__________________

subliminal message: 1+1=3
  #6  
Old 07-07-2002, 02:27 AM
Despo1 Despo1 is offline
Registered User
Join Date: May 2002
Location: G3rM4nY
Posts: 38
Despo1 is on a distinguished road
Send a message via AIM to Despo1
i know but any serverstring will lagg the server
__________________
Bl4h Si6n4tur3s sUx3n
  #7  
Old 07-07-2002, 02:43 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 Despo1
i know but any serverstring will lagg the server
just server strings wont loag, constantly calling them might, classic has over 100 server strings/flags and I don't lag much their
  #8  
Old 07-10-2002, 03:51 PM
Despo1 Despo1 is offline
Registered User
Join Date: May 2002
Location: G3rM4nY
Posts: 38
Despo1 is on a distinguished road
Send a message via AIM to Despo1
yeah but a server.string foor each hat >=180 also i used the originally script and now i know that but thanxs anyway
__________________
Bl4h Si6n4tur3s sUx3n
  #9  
Old 07-10-2002, 05:49 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
why store server strings when you can use a Database NPC to make a uhm, well, DUH, a Database.
__________________

subliminal message: 1+1=3
  #10  
Old 07-11-2002, 02:02 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Quote:
Originally posted by Despo1
i know but any serverstring will lagg the server

no
alot of server strings lag a non-npcserver
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 06:33 PM.


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