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
blacksmith menu
Author Message
aptillah
Apprentice
*

Posts: 17
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2014
Reputation: 0



Post: #1
blacksmith menu
hi i have some problem abouth menu

On=59 //War axe
IF (<blacksmithing> < 64.4)
src.sysmessage @0481 Mace yapmak icin 64.4 blacksmithing skili bilmeniz gerekiyor.
elseif !(<restest 16 i_ingot_iron>)
src.sysmessage @0481 Mace yapmak icin 16 adet 'iron ingot' gerekiyor.
else
src.makeitem=i_axe_war
src.tag.blacksmith=i_axe_war
endif

problem is when i push button not creat to item if i change "src.makeitem=i_dagger" its working but its not create war axe.. sorry for my english
02-19-2014 11:53 AM
Find all posts by this user Like Post Quote this message in a reply
JohnVeritas
Apprentice
*

Posts: 49
Likes Given: 0
Likes Received: 4 in 4 posts
Joined: Feb 2014
Reputation: 2



Post: #2
RE: blacksmith menu
Check war axe's resources, i think war axe needed more iron ingot that your define, thats why player cant create it.
02-19-2014 06:20 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: blacksmith menu
RESOURCES=11 i_ingot_iron,1 i_log
02-20-2014 11:40 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: blacksmith menu
Need to see more of the script.
If this is a custom crafting system you could restest for 11 ducks and allow the item to be created if the prerequisite was met (yes thats a ridiculous example but...)
Based on what you have shown, there is no reason why the axe would not be crafted if the two prior conditions are met.

[Image: 2nis46r.jpg]
02-20-2014 11:55 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
JohnVeritas
Apprentice
*

Posts: 49
Likes Given: 0
Likes Received: 4 in 4 posts
Joined: Feb 2014
Reputation: 2



Post: #5
RE: blacksmith menu
Actually no need to see more, if button defines is ok & skill checks is ok & resource check is ok |< thoose three is custom | if everythink fine, makeitem is ok only left to check main item resources. If main resources doesnt fit with custom resource check ( if main needs more ) he cant create, otherwise everyhink is fine.
02-20-2014 07:06 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: blacksmith menu
Well yes.. if you don't have all the resourced (as listed by darksun and missed by me... precoffee posting is never good) you won't be able to make the item.
The script itself as posted is not at fault though.

[Image: 2nis46r.jpg]
02-20-2014 11:11 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
aptillah
Apprentice
*

Posts: 17
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2014
Reputation: 0



Post: #7
RE: blacksmith menu
thanks for helps.. its fix now..
02-20-2014 11:35 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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