Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-20-2010, 12:09 AM
qw3rt qw3rt is offline
qW£rt Classic Iphone
qw3rt's Avatar
Join Date: Jun 2010
Location: France
Posts: 34
qw3rt is an unknown quantity at this point
Lay Items Problem

Hi

I would liked to script a simple baddy but i have a problem,i'm sure its simple but i can't find a solution

PHP Code:
if (timeout && this.mode==4) {
  
random(0,100);
  if (
i<50lay bombslay bombs;
  if (
i>50lay darts
that's a part of the script its about when the baddy die i would like it lays bombs or arrows.

It works, but the problem is it lay 1 bombs icon and when i take it, it gives me 10 bombs.
Me I would like it lay ,instead of 1bombs icons and 10 bombs, 2 bombs icons and 10 bombs.

Thanks, i hope i explained it well.
__________________
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 07:37 PM.


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