Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   A small question about strings and clients (https://forums.graalonline.com/forums/showthread.php?t=25271)

Gohan43331 03-08-2002 10:11 AM

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

SaijinGohan 03-09-2002 04:51 AM

yup:megaeek:

Gohan43331 03-09-2002 07:41 AM

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

SaijinGohan 03-09-2002 08:19 AM

I dont think that would work

screen_name 03-09-2002 12:35 PM

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

Gohan43331 03-09-2002 12:38 PM

A server var? the players are in the same level, so why not save a server var and use level.hp1 or something...?

screen_name 03-09-2002 12:56 PM

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

la_builder 03-10-2002 05:22 AM

its really sh***y if you are making non-p2p caus ya cant fake the efficiency of the npc server

nyghtGT 03-10-2002 05:53 AM

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 ...


All times are GMT +2. The time now is 04:51 PM.

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