Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help with scripting (https://forums.graalonline.com/forums/showthread.php?t=5195)

JungleKid 06-20-2001 02:51 AM

Help with scripting
 
How do I add something on to everything a player says, so say I wanted to put "blah blah" on the end of each message?

General 06-20-2001 03:52 AM

if (!startswith(#c,Blah)) {
setcharprop #c,Blah #c Blah;
}

that should work, I think thats how newmain does it

grim_squeaker_x 06-20-2001 06:07 PM

Well that's basically this:
NPC Code:
if (playerchats) setplayerprop #c,#c blah blah;


General 06-20-2001 10:36 PM

Oh, i thought you said ends, not end


All times are GMT +2. The time now is 12:18 AM.

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