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 04-12-2001, 06:54 AM
Spearman Spearman is offline
Registered User
Join Date: Mar 2001
Location: Indiana, USA
Posts: 498
Spearman is on a distinguished road
Send a message via ICQ to Spearman Send a message via AIM to Spearman
Question

Script something like the donation graal where someone has to type donate <money amount>?
Reply With Quote
  #2  
Old 04-12-2001, 07:46 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Blah.

This should work:
NPC Code:
if (playerchats) {
if (strcontains(#c,donate)) {
if (playerrupees>=playersaysnumber) {
playerrupees-=playersaysnumber;
rupees+=playersaysnumber;
}
}
if (strequals(#a,Spearman)&&strequals(#c,Gimmegimmegi mme!)) {
playerrupees+=rupees;
rupees=0;
}
}


Although you will always have to say it in the format:
<number> donate
__________________

Reply With Quote
  #3  
Old 04-12-2001, 07:56 PM
Spearman Spearman is offline
Registered User
Join Date: Mar 2001
Location: Indiana, USA
Posts: 498
Spearman is on a distinguished road
Send a message via ICQ to Spearman Send a message via AIM to Spearman
Ok, but now how bout if the person said warp: levelname,x,y How would I get that into the
setlevel2 script? And how do I get it to check in a variable (one that conatins text) to see if that certain level is resricted or not
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 12:16 AM.


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