Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Old Scripting Engine (GS1)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 09-25-2008, 02:00 AM
johny023 johny023 is offline
Registered User
Join Date: Dec 2006
Posts: 36
johny023 is on a distinguished road
Quote:
Originally Posted by cbk1994 View Post
Yes, add //#SERVERSIDE at the top of the npcs.

Not really. Don't. Please.


We probably need to see the code for how you are placing the monster, and how you are trying to destroy it.
well here's the script i used to get rid of them

PHP Code:
if (this.hp<=&& timeout){
hearts 0;
setcharani goblin_death,;
sleep 1;
credits += 40;
destroy;

and here's the script i'm using to place the npcs


PHP Code:
if (timeout) {

this.random(0,100);
this.i2 random(0,100);
this.i3 random(0,100);
this.i4 random(0,100);
this.i5 random(0,100);
this.i6 random(0,100);
this.i7 random(0,100);
this.i8 random(0,100);
this.i9 random(0,100);
this.i10 random(0,100);
this.i11 random(0,100);
this.i12 random(0,100);

if (
this.i<=40 && wolvesleft>=0putnpc block.gif,gg_wolf.txt,random(20,40),61;
if (
this.i2<=40 && wolvesleft>=0putnpc block.gif,gg_wolf.txt,random(20,40),61;
if (
this.i3<=40 && wolvesleft>=0putnpc block.gif,gg_wolf.txt,random(20,40),61;
if (
this.i4<=40 && wolvesleft>=0putnpc block.gif,gg_wolf.txt,random(20,40),61;

if (
this.i5<=40 && snakesleft>=0putnpc block.gif,gg_snake2.txt,random(20,40),61;
if (
this.i6<=40 && snakesleft>=0putnpc block.gif,gg_snake2.txt,random(20,40),61;
if (
this.i7<=40 && snakesleft>=0putnpcblock.gif,gg_snake2.txt,random(20,40),61;

if (
this.i8<=40 && goblinsleft>=0putnpc block.gif,gg_goblin.txt,random(20,40),61;
if (
this.i9<=40 && goblinsleft>=0putnpc block.gif,gg_goblin.txt,random(20,40),61;
if (
this.i10<=40 && goblinsleft>=0putnpc block.gif,gg_goblin.txt,random(20,40),61;
if (
this.i11<=40 && goblinsleft>=0putnpc block.gif,gg_goblin.txt,random(20,40),61;
if (
this.i12<=40 && goblinsleft>=0putnpc block.gif,gg_goblin.txt,random(20,40),61;

it's probably not the best script.. but it's the only way i could find to make a a random amount of npcs to spawn.

and i'll try the serverside thing

edit: i tried changing it to serverside but it didn't help any.

Last edited by johny023; 09-25-2008 at 02:44 AM.. Reason: serverside didn't work
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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