Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Old Scripting Engine (GS1)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-20-2012, 10:37 PM
E_Man E_Man is offline
E-Man
E_Man's Avatar
Join Date: Jun 2012
Posts: 81
E_Man will become famous soon enough
Bottle Help

I made this but it did not work, the empty bottle does not delete, I actually have to use the empty bottle once I get the red potion to delete it, also, when I use the red potion, I don't get my red potion back. Here are the scripts:


Empty Bottle:
PHP Code:
if (playerenters) {
show;
setimg eman_water_potion.png;
}
if (
playertouchsme) {
toweapons Empty Bottle;
hide;
}
if (
hasweapon(Red Potion)) {
destroy;

Red Potion:
PHP Code:
// NPC made by E-Man
if (playerenters) {
show;
setimg eman_red_potion.png;
x=24;
y=29.9;
}
if (!
hasweapon(Empty Bottle) && playertouchsme) {
say2
You 
require an Empty Bottle;
}
if (
hasweapon(Empty Bottle) && playertouchsme) {
toweapons Red Potion;
hide;
}
if (
weaponfired) {
playerhearts=100;
setplayerprop #c, *gulp*;
destroy;
setimg eman_water_potion.png;
toweapons Empty Bottle

Reply With Quote
 


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 09:41 AM.


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