The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
More newbie gumper problems :P
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #5
RE: More newbie gumper problems :P
try using
Code:
IF (<SRC.CANMAKE i_potion_weak_poison>) && ((<SRC.near_alchemy_scroll i_alchemy_recipe_weak_poison>) || (<SRC.RESTEST i_alchemy_recipe_weak_poison>))
instead
Code:
IF (<SRC.RESTEST i_mortar_pestle>) && (<SRC.RESTEST 3 i_reag_nightshade>) && (<SRC.RESTEST i_bottle_small_water>) && ((<SRC.near_alchemy_scroll i_alchemy_recipe_weak_poison>) || (<SRC.RESTEST i_alchemy_recipe_weak_poison>))

and to close dialogs when move the item you must use
Code:
ON=@DClick
SDIALOG d_alchemy_recipe_weak_poison
return 1

ON=@PickUp_Pack
SRC.DIALOGCLOSE d_alchemy_recipe_weak_poison

ON=@PickUp_Ground
SRC.DIALOGCLOSE d_alchemy_recipe_weak_poison

btw you can optimize the code a bit Smile
Code:
[ITEMDEF i_alchemy_recipe_weak_poison]
ID=i_map_rolled
VALUE=50
NAME=Weak Poison Recipe
WEIGHT=1
CATEGORY=Infinity Items
SUBSECTION=Alchemy Recipes
DESCRIPTION=Weak Poison

ON=@DClick
SDIALOG d_alchemy_recipe_weak_poison
return 1

ON=@PickUp_Pack
SRC.DIALOGCLOSE d_alchemy_recipe_weak_poison

ON=@PickUp_Ground
SRC.DIALOGCLOSE d_alchemy_recipe_weak_poison

[DIALOG d_alchemy_recipe_weak_poison]
0,0
resizepic 34 59 9380 259 281
gumppic 250 95 1227
gumppic 58 125 2091
gumppic 58 273 2091
gumppic 60 145 2087
gumppic 60 165 2087
gumppic 60 185 2087
dtext 69 100 984 Weak Poison
dtext 77 143 984 Mortar and Pestle
dtext 77 163 100 Small Bottle of Water
dtext 69 288 984 Skill Required: 15
dtext 77 183 58 3 Nightshade
button 251 291 30009 30008 1 0 1
dtext 224 288 58 Mix

[DIALOG d_alchemy_recipe_weak_poison BUTTON]
ON=1
IF !(<SRC.CANMAKESKILL i_potion_weak_poison>)
  SRC.SYSMESSAGENEG You lack the skill to make this poison.
ELIF (<SRC.CANMAKE i_potion_weak_poison>) && ((<SRC.near_alchemy_scroll i_alchemy_recipe_weak_poison>) || (<SRC.RESTEST i_alchemy_recipe_weak_poison>))
  SRC.EMOTE starts making a Weak Poison
  SRC.SOUND 578
  MAKEITEM i_potion_weak_poison
ELSE
  SRC.SYSMESSAGENEG you don't have all the required materials!
ENDIF
SDIALOG d_alchemy_recipe_weak_poison
return 1
(This post was last modified: 07-30-2012 01:55 PM by Coruja.)
07-30-2012 01:30 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: More newbie gumper problems :P - Coruja - 07-30-2012 01:30 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)