Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   if (online || offline) (https://forums.graalonline.com/forums/showthread.php?t=3531)

everandom 05-25-2001 03:30 PM

if (online || offline)
 
LOLZ...
i just wanna ask is there difference between scripting for offline version and onliine ver.

eg. do i still can use the

if (playerenters){
playerrupees=playerrupees+10000;
}

on the online...?

another question whats index on:

players[index].hearts(or nething)

for???

is it for online use???

sorry i never submit my npc online yet :)

everandom 05-28-2001 03:42 PM

that means...
 
if i want only the player which are using it are affected i put 0 in index????

n also could u hurt a person in a deep water???

Tyhm 05-30-2001 09:45 AM

players[0].hearts=playerhearts
you can use the shortened version.
You cannot write to players[1].hearts though, or players[1].rupees, etc. Pretty much everything other players have is read-only to you, to prevent hackers. You'd have to use the new event triggers and a system NPC to make, say, a robber NPCW.
You can hurt people in water if you use freezeplayer 0.05; hurt 1; , or so I am told.

kyle0654 05-30-2001 10:46 AM

or you could use with...

everandom 06-01-2001 05:50 PM

thanx man...:)


All times are GMT +2. The time now is 06:34 AM.

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