Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-28-2002, 11:14 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Playerchats is DEFFINATELY the best. Playersays you can't do much with. And it works for triggering an event but it is ineffective. I was hoping I wouldn't have to comment either but it seems no one else has seen the obvious.
NPC Code:
if (playerchats && startswith(TEXT,#c))


and also the other used:
NPC Code:
if (playerchats && strcontains(#c,text))


It's fairly obvious I thought x-x (<-converting to Stefan style now ) #c is the code for playerschat. It just checks to see if the players' chat code is what it says. In playersays(chat) you can't really say if it startswith or anything. It is obsolete. it's like the difference between setlevel and setlevel2. I think Setlevel was finally removed, so if you NEED to use the same function:
NPC Code:
setlevel2 <level>,playerx,playery;


SAME exact thing. That is what it is with playerchats, and this is much better.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
Reply


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:18 AM.


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