Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   I need some script help (https://forums.graalonline.com/forums/showthread.php?t=3249)

LazyDragoon 05-20-2001 12:05 PM

I need some script help
 
I need a script where if you die you lose 100 gralat and it is laid right where you died. I had a script like this

if(playerdies){lay goldrupee;playerrupees-=100}

but the script didn't work and lays a gold rupee no mater if the player has 100 gralat or not. Is there anyway to make it so if they die they lose up to 100 gralat and the money is scattered around them? This is for a system NPC i'm working on I have the rest almost done but this is starting to anger me :mad:

freddyfox 05-20-2001 12:13 PM

NPC Code:

if(playerdies&&playerrupees <= 100){lay goldrupee; playerrupees -= 100;}



PROBLEM SOLVED!

LazyDragoon 05-21-2001 01:43 PM

lol thanks but how would you make it so if they had like 76 gralats that all they had was dropped?

bb2k1 05-21-2001 03:14 PM

if (playerdies && playerrupees > 99) lay goldrupee;

Vermains script is WRONG, he's a clownskull.


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.