Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   does a command exists..... (https://forums.graalonline.com/forums/showthread.php?t=24834)

la_builder 03-02-2002 12:18 AM

does a command exists.....
 
Is there a command that could dectect for example a baddy in the same level as you are (or even better in the 4 levels surounding you) and if there is is it p2p or non-p2p:)

TDO2000 03-02-2002 12:51 AM

cmpuscount, some for loops and compus[index].x compus[index].y

la_builder 03-02-2002 12:54 AM

bud would that really dectect it like if the baddy or something is in there that i could use a if statement

Loriel 03-02-2002 12:56 AM

if (compuscount>0)

TDO2000 03-02-2002 12:56 AM

Quote:

Originally posted by la_builder
bud would that really dectect it like if the baddy or something is in there that i could use a if statement
NPC Code:

if (playerenters && compuscount > 0) {
for (i=0;i<compuscount;i++) {
if (compus[i]. ....
code here...
}
}
}


la_builder 03-02-2002 02:06 AM

if (playerenters && compuscount > 0) { for (i=0;i<compuscount;i++) { if (compus([i],say2 hello)) } } } this wont work
(feels really noobisch right now)

btedji 03-02-2002 02:48 AM

I hate making detection scripts =(

la_builder 03-02-2002 04:13 AM

well i need it for sume things btw is there a dectection system that detects comps in 4 surrounding levels

TDO2000 03-02-2002 04:54 AM

Quote:

Originally posted by la_builder
if (playerenters && compuscount > 0) { for (i=0;i<compuscount;i++) { if (compus([i],say2 hello)) } } } this wont work
(feels really noobisch right now)

omg X_x
example:

if (compus[i].x in |0,32|) message lalala;


watch the commads.rtf what u can use instead of the x

Saga2001 03-02-2002 02:01 PM

Quote:

Originally posted by Kaimetsu
Can't check out surrounding levels, however. Maybe if you did some tricks with the NPC Server, but not normally.
Yeah, maybe some sort of level probing, hmph, maybe whatever the direction of the player is have some sort of invisible npc that goes into the level in front of the player and test for compus and send it back to the player's system...

la_builder 03-02-2002 02:33 PM

k thanks


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

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