Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   I bad scripter so help me (https://forums.graalonline.com/forums/showthread.php?t=1141)

Lion'el-Jonson 04-08-2001 01:22 PM

if (playerchats&&strcontains(#c,root beer)&&playerruppees>=1)
{set gbbr;playerrupees-=1}

if (playerchats&&strcontains(#c,root beer)&&playerruppees>=0)
{say2 You don't have enough gralats#.}

WTF IS WRONG WITH IT? When I say root beer it says You don't have enough gralats even when I have money! help help help!

grim_squeaker_x 04-08-2001 05:27 PM

Quote:

Originally posted by Lion'el-Jonson
if (playerchats&&strcontains(#c,root beer)&&playerruppees>=1)
{set gbbr;playerrupees-=1}

if (playerchats&&strcontains(#c,root beer)&&playerruppees>=0)
{say2 You don't have enough gralats#.}

WTF IS WRONG WITH IT? When I say root beer it says You don't have enough gralats even when I have money! help help help!

With the "if (playerchats&&strcontains(#c,root beer)&&playerruppees>=0)"

it shouldn't be playerrupees>= but playerrupees <=

Lion'el-Jonson 04-09-2001 12:52 AM

You is god grim! Thank you!


All times are GMT +2. The time now is 03:17 AM.

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