Graal Forums

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

Draktha 11-27-2001 11:07 AM

Gralats Offline
 
i am trying to make an offline version of the gralats thing. i know i have to put it in an NPC to make it work but.... i dont know how to go about doing that... :( some one plz point me in the right direction....

LiquidIce00 11-28-2001 03:14 AM

it probbly wont work, it might but i dont know if putnpc works offline, and i know putnpc2 does not work offline (if ur making for p2p)

chime 11-28-2001 04:22 AM

well it depends... I scripted my own money system and it works fine offline

Faheria_LAT1 11-28-2001 04:51 AM

TB3 made that a long time ago.. and then Elvenlands stole it with the Debugger "bug" :(

Andor_NPC-Admin1 11-28-2001 06:23 AM

On a p2p playerworld, are the gralats placed on the level by scripts, or the server program?

LiquidIce00 11-28-2001 06:25 AM

Quote:

Originally posted by Andor_NPC-Admin1
On a p2p playerworld, are the gralats placed on the level by scripts, or the server program?
Its a script but i believe due to its index it is in everylevel. Check the npc server doc , it tells a little bit about it I think

chime 11-28-2001 07:11 AM

i have the money script if you want to see it.

SSRobgeta 11-28-2001 09:15 AM

Different money is cool. :D

nyghtGT 11-28-2001 09:51 AM

Quote:

Originally posted by Faheria_LAT1
TB3 made that a long time ago.. and then Elvenlands stole it with the Debugger "bug" :(
the debugger was awesome ...

Draktha 11-28-2001 09:51 AM

Quote:

Originally posted by chime
i have the money script if you want to see it.
Do you mean the money script that places money or the script that is in each of the gralats?

nyghtGT 11-28-2001 09:53 AM

i have a gralat system i tested on Andor that works pretty good ...

Draktha 11-29-2001 07:38 AM

Quote:

Originally posted by nyghtGT
i have a gralat system i tested on Andor that works pretty good ...
AH! can I see it? :D

Python523 11-29-2001 07:44 AM

Quote:

Originally posted by nyghtGT
i have a gralat system i tested on Andor that works pretty good ...
Correct me if I'm wrong but I think the gralats are embedded into the NPC Server, you don't even have to script it or ask Stefan for the script since the NPC Server automatically does it

Draktha 11-29-2001 07:48 AM

Quote:

Originally posted by Python523

Correct me if I'm wrong but I think the gralats are embedded into the NPC Server, you don't even have to script it or ask Stefan for the script since the NPC Server automatically does it

Yeah, but you need a system NPC for non-P2P servers and for offline.

SSRobgeta 11-29-2001 08:44 AM

Would you do:
if (playerlaysitem&&strequals(???,greenrupee)) {
setcharani gralat,1;
}

Something like that?

Draktha 11-29-2001 09:20 AM

Quote:

Originally posted by SSRobgeta
Would you do:
if (playerlaysitem&&strequals(???,greenrupee)) {
setcharani gralat,1;
}

Something like that?

no its gotta use putnpc 'cause there is a script in each of the gralats.. but im not sure exactly how.. to make it work..

SSRobgeta 11-29-2001 09:25 AM

Quote:

Originally posted by Draktha

no its gotta use putnpc 'cause there is a script in each of the gralats.. but im not sure exactly how.. to make it work..

I knew that lolz. I ment is the srequals part right?

Draktha 11-29-2001 09:39 AM

Quote:

Originally posted by SSRobgeta

I knew that lolz. I ment is the srequals part right?

no idea :(

nyghtGT 11-29-2001 10:16 AM

Quote:

Originally posted by Python523

Correct me if I'm wrong but I think the gralats are embedded into the NPC Server, you don't even have to script it or ask Stefan for the script since the NPC Server automatically does it

well, i have access to edit the script through NPC Control ...

nyghtGT 11-29-2001 10:18 AM

basically ... if you made a gralats system for a free server it would have to be very good cause you could not use the server to control anything and then someone could edit there stuff clientside for the money to go up and so on ...

Andor_NPC-Admin1 11-29-2001 12:24 PM

Quote:

Originally posted by SSRobgeta
Would you do:
if (playerlaysitem&&strequals(???,greenrupee)) {
setcharani gralat,1;
}

Something like that?

To detect if someone laid a rupees, you need to do sumptin like

if(created||timeout) {
for(a=0;a!=itemscount;a++) {
if(items[a].type==greenrupee) {
woohoo, I found a gelat!
}
}
timout=0.05;
}

Draktha 11-30-2001 05:54 AM

Quote:

Originally posted by Andor_NPC-Admin1


To detect if someone laid a rupees, you need to do sumptin like

if(created||timeout) {
for(a=0;a!=itemscount;a++) {
if(items[a].type==greenrupee) {
woohoo, I found a gelat!
}
}
timout=0.05;
}

:confused: uhhh could you tell me how exactly that works...

Andor_NPC-Admin1 11-30-2001 06:52 AM

it searches all the items 4 a green gelat.
If it found one, then it goes through the loop =P


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

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