Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   setfocus (https://forums.graalonline.com/forums/showthread.php?t=54876)

sparkers 08-13-2004 08:38 PM

setfocus
 
how do you setfocus to a player on a different level? I have tried normal setfocus using indexes and such bvut it wont work

Lance 08-13-2004 08:45 PM

Unless you are using a gmap, you cannot focus on a player in another level.

Well, you could, but you would not be able to actually see anything happening there.

falco10291029 08-13-2004 09:54 PM

well how culd u even if u culdnt c anything happening?

WanDaMan 08-13-2004 09:54 PM

Well, couldn't you copy the levels tiles into variables or something? I heard Alexander did something similar, which turned out awesome I might add.

falco10291029 08-13-2004 10:06 PM

well i wanna know cus i have this npc where you take control of that person totally, except wepons and junk. like u get a basic attack to use, then u also control movement and talking. I think itd be better if it setfocus on them. alkso what stop movement commands work serverside?

Dach 08-13-2004 10:07 PM

Quote:

Originally Posted by falco10291029
well how culd u even if u culdnt c anything happening?

he means setting the focus on an x and y that is outside the current level

Quote:

Originally Posted by WanDaMan
Well, couldn't you copy the levels tiles into variables or something? I heard Alexander did something similar, which turned out awesome I might add.

are you reffering to a spy npc? I don't think that is a reliable alternative for him :\

falco10291029 08-13-2004 10:31 PM

yeah spy npcs are easy except i dunno the tile part i just have it so u see the person talking and ganis and it displays things about then. It sux that u cant focus on that player then for a control npc:-/

falco10291029 08-14-2004 02:37 AM

wait a second idnt there a warpto command for npcs? Cant u use that to warp the npc there then set the focus on the npcs x and y and have it go to the players x and y?

Lance 08-14-2004 02:52 AM

Quote:

Originally Posted by falco10291029
wait a second idnt there a warpto command for npcs? Cant u use that to warp the npc there then set the focus on the npcs x and y and have it go to the players x and y?

Think about that one for a minute.

Nappa 08-14-2004 03:18 AM

Lol... You can't see player movement on different levels unless using a gmap, so even if you did setfocus on a different level it wouldn't matter...

falco10291029 08-14-2004 04:04 AM

So in other words there is no way in current gscript to do this?

Dach 08-14-2004 05:59 AM

Quote:

Originally Posted by falco10291029
So in other words there is no way in current gscript to do this?

not the way you want to do it

falco10291029 08-14-2004 06:31 PM

well that royally sux, make new commands, like setfocus2 x,y,level. that would work

Python523 08-14-2004 08:17 PM

Quote:

Originally Posted by falco10291029
well that royally sux, make new commands, like setfocus2 x,y,level. that would work

It's a pointless idea that would be inefficient to create. There is no real purpose for it besides a "spy" npc which is pointless.

Lance 08-14-2004 08:39 PM

Quote:

Originally Posted by falco10291029
well that royally sux, make new commands, like setfocus2 x,y,level. that would work

No, you don't understand. If you are not receiving player movements or the npcs in another level (which you aren't), this command would be good for absolutely nothing.

falco10291029 08-14-2004 09:08 PM

well ucould make it so it would basically act like u r the.......duh....ill just have it set old x and y and level, then have it actually just warpto th charcter ur controlling

Lance 08-14-2004 09:24 PM

Quote:

Originally Posted by falco10291029
well ucould make it so it would basically act like u r the.......duh....ill just have it set old x and y and level, then have it actually just warpto th charcter ur controlling

Sigh. That does not change the fact that your graal client is not receiving/processing players/NPCs on other levels, though.

middo 08-14-2004 10:53 PM

Give it up man. There is no easy way to view another level unless it's THAT important.

falco10291029 08-14-2004 11:26 PM

Quote:

Originally Posted by Lance
Sigh. That does not change the fact that your graal client is not receiving/processing players/NPCs on other levels, though.


Thats not what i am saying. I am saying that it will save your x and y and level as a string, then warpo you to the player you are controlling, so you will be on that level, then when you turn it off, i will have it warp you back!

Lance 08-15-2004 12:20 AM

Quote:

Originally Posted by falco10291029
Thats not what i am saying. I am saying that it will save your x and y and level as a string, then warpo you to the player you are controlling, so you will be on that level, then when you turn it off, i will have it warp you back!

Except you said that it would be warping, not the player. If you don't say what you mean, how are the rest of us supposed to respond?

falco10291029 08-15-2004 01:22 AM

Wait i edited this u cant set it to warpto the player can u #L wont work with with() it just sets it as the using players level.

VeX_RaT_Boy 08-15-2004 05:36 PM

Use #F for current active players level.

Lance 08-15-2004 06:42 PM

Quote:

Originally Posted by VeX_RaT_Boy
Use #F for current active players level.

Further explanation: In any NPC, #L is that NPC's level. The contents of this do not change when you are getting another player with the with() statement (unless, of course, the NPC has moved). #F is what you want for that, as Kjetil stated.

falco10291029 08-18-2004 09:39 PM

Ok thanks I dont remember ever seeing #F in commands.rtf, where i looked before posting my problem of course ;)


All times are GMT +2. The time now is 07:08 AM.

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