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 03-08-2002, 10:11 AM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
Question A small question about strings and clients

I've been noodling this at school for over a week now...

if you have a client.-string (or a client.-var) and you want another client to edit it (ex: bank script and hp script) can you do (if they are in level & have client.blah set to 10):
NPC Code:

message #s(strtofloat(players[2].blah));


and actually have it message player index 2 string client.blah?

I'm trying to think of workarounds to p2p commands.

Gohan
Reply With Quote
  #2  
Old 03-09-2002, 04:51 AM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
yup
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #3  
Old 03-09-2002, 07:41 AM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
Is there a way to technically get around the with(getplayer()) for p2p using non-p2p commands?

Perhaps if a certain event happens (gani == certain gani) they would post their hp to the level, and the other client would deduct their sword power from that and then the client would re-instate the new variable for the old... Would that work?

Gohan
Reply With Quote
  #4  
Old 03-09-2002, 08:19 AM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
I dont think that would work
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #5  
Old 03-09-2002, 12:35 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Gohan43331
Is there a way to technically get around the with(getplayer()) for p2p using non-p2p commands?

Perhaps if a certain event happens (gani == certain gani) they would post their hp to the level, and the other client would deduct their sword power from that and then the client would re-instate the new variable for the old... Would that work?

Gohan
u could use the gani thing, then post it to a string, like server.levelname.account.hp=whatever

:P
__________________
[signature]insert here[/signature]
Reply With Quote
  #6  
Old 03-09-2002, 12:38 PM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
A server var? the players are in the same level, so why not save a server var and use level.hp1 or something...?
Reply With Quote
  #7  
Old 03-09-2002, 12:56 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Gohan43331
A server var? the players are in the same level, so why not save a server var and use level.hp1 or something...?
well, that too, i didnt think of that
__________________
[signature]insert here[/signature]
Reply With Quote
  #8  
Old 03-10-2002, 05:22 AM
la_builder la_builder is offline
Registered User
Join Date: Jan 2002
Location: Holland
Posts: 154
la_builder is on a distinguished road
its really sh***y if you are making non-p2p caus ya cant fake the efficiency of the npc server
__________________
Dark Frontier
The enemy is surrounding us all,more evil than a human could ever imagine.

Dark Fontier Coming Soon

Last edited by Kaimetsu; 03-10-2002 at 02:22 PM..
Reply With Quote
  #9  
Old 03-10-2002, 05:53 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Gohan43331
Is there a way to technically get around the with(getplayer()) for p2p using non-p2p commands?

Perhaps if a certain event happens (gani == certain gani) they would post their hp to the level, and the other client would deduct their sword power from that and then the client would re-instate the new variable for the old... Would that work?

Gohan
i am making a control system for free servers using server.strings and client.strings but i advise if you use the method for a free server you make sure you utilize any strings you use ...
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 08:35 PM.


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