Graal Forums

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

nyghtGT 09-20-2001 09:46 AM

Gralats ...
 
Why wont this work ???

// NPC made by Nyght -GT-
if (created) {
showcharacter;
updategani();
}
if (updategani) {
updategani();
}
function updategani() {
type = 1;
if (rupees>=100) type = 4;
else if (rupees>=30) type = 3;
else if (rupees>=5) type = 2;

setcharani gralats,#v(type);
}
if (playertouchsme) {
playerrupees += rupees;
rupees = 0;
destroy;
}

Please help ....
Use it freely, I dont care, just tell me why it wont work ...

KJS 09-20-2001 06:49 PM

Re: Gralats ...
 
Quote:

Originally posted by nyghtGT
Why wont this work ???

// NPC made by Nyght -GT-
if (created) {
showcharacter;
updategani();
}
if (updategani) {
updategani();
}
function updategani() {
type = 1;
if (rupees>=100) type = 4;
else if (rupees>=30) type = 3;
else if (rupees>=5) type = 2;

setcharani gralats,#v(type);
}
if (playertouchsme) {
playerrupees += rupees;
rupees = 0;
destroy;
}

Please help ....
Use it freely, I dont care, just tell me why it wont work ...

that npc really looks like it is stefans code (well pretty close) for the gralat script...

it wont work unless you have a p2p server and it is incoded in the npc server...

if you have a non p2p server you have to add things like to see if the person layed a rupee...

nyghtGT 09-21-2001 07:21 AM

ok ...
 
uhh ok thanx ... i am trying to get as equally great non-p2p scripting as i can cause i dont wanna p2p server ....


All times are GMT +2. The time now is 06:35 PM.

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