Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Its probably easy but... (https://forums.graalonline.com/forums/showthread.php?t=31786)

WHIPENIE4 06-17-2002 09:30 PM

Its probably easy but...
 
Its probably easy, but im trying to make my first script, and im lost on this part.

horses[index].bushes

See, im making an NPC where the horse is layed at my x and y im out when i fire the weapon, i just want it to where it'll have eaten 5 bushs and it times out every 4 seconds.
this is what the script is so far, just fill me in please
// NPC made by X-Mann
if (created) {
}
if (playertouchsme) {toweapons Horse Whisper
}
if (isweapon) {}
if (weaponfired) {puthorse ride.png, playerx, playery}

nyghtGT 06-17-2002 10:03 PM

try:

for (i=0;i<horsescount;i++) {
horses[i].bushes==5;
}

then have it do the opposite after 4 seconds...

i could be wrong though *sigh*

WHIPENIE4 06-17-2002 10:16 PM

(X)
Na, that one didnt work.

GrowlZ1010 06-17-2002 11:06 PM

horses[index].bushes is read only offline. Maybe it's one of those things that works on the NPC server, but offline, you CANNOT set horses[index].bushes: you can only check its value.

BBflat 06-18-2002 01:46 AM

Quote:

Originally posted by GrowlZ1010
horses[index].bushes is read only offline. Maybe it's one of those things that works on the NPC server, but offline, you CANNOT set horses[index].bushes: you can only check its value.
This is true also for players[index].vars, and probably for the others, as well. =(


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

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