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
ON=@kill
Author Message
UltimaAku
Journeyman
*

Posts: 125
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 1



Post: #13
RE: ON=@kill
Is it specific monster or random chance? if it's a random monster, you could have a randomiser put in.

[Events e_more_money_random]
ON=@kill
SRC.VAR.RAND=<EVAL {1 50}> //2% chance or 1/50 chances
if (<ARGO.brain> = 0) // Prevents it working against other players
RETURN 0 // but the kill still happens
ELSEIF (<SRC.VAR.RAND>=1) // Random Value is 1
SRC.SYSMESSAGE You have received bonus gold from <ARGO.NAME>.
SRC.newitem i_gold // Creates the new item
SRC.ACT.AMOUNT = (<ARGO.STR> + <ARGO.DEX> + <ARGO.INT>) /// the tougher the mob, the more the gold
SRC.ACT.BOUNCE /// gives it to the player
RETURN 0 /// And the creature dies
endif

This script could be used, but it would work on anything, if you use this, i'd recommend attaching this event to a weapon of some sort, because something like this could work on a cow... although it gives little gold. (30 + 5 + 15 = 50, so 2% chance of dropping 50 gold, worth? lol)

But if it's specific, try this:

[Events e_more_money_specific]
ON=@kill
SRC.VAR.RAND=<EVAL {1 10}> //10% chance or 1/10 chances
IF (<SRC.VAR.RAND>=1) // Random Value is 1
IF (<ARGO.TAG.BONUSCHANCE>=1) // Checks to see if it's the creature that drops the bonus gold
SRC.SYSMESSAGE You have received bonus gold from <ARGO.NAME>.
SRC.newitem i_gold // Creates the new item
SRC.ACT.AMOUNT = (<ARGO.STR> + <ARGO.DEX> + <ARGO.INT>) /// the tougher the mob, the more the gold
SRC.ACT.BOUNCE /// gives it to the player
RETURN 0 /// And the creature dies
endif

then add TAG.BONUSCHANCE=1 to any monster you want to have the gold bonus chance.
(This post was last modified: 03-29-2014 03:52 AM by UltimaAku.)
03-29-2014 03:44 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
ON=@kill - Van Glan Bloom - 03-26-2014, 02:47 PM
RE: ON=@kill - XuN - 03-26-2014, 06:52 PM
RE: ON=@kill - XuN - 03-27-2014, 07:07 AM
RE: ON=@kill - Van Glan Bloom - 03-27-2014, 02:47 AM
RE: ON=@kill - Mordaunt - 03-27-2014, 04:19 AM
RE: ON=@kill - Van Glan Bloom - 03-27-2014, 05:50 AM
RE: ON=@kill - Van Glan Bloom - 03-27-2014, 09:35 AM
RE: ON=@kill - darksun84 - 03-27-2014, 10:07 AM
RE: ON=@kill - Van Glan Bloom - 03-27-2014, 01:48 PM
RE: ON=@kill - Alaric - 03-27-2014, 08:14 PM
RE: ON=@kill - Van Glan Bloom - 03-28-2014, 01:30 AM
RE: ON=@kill - Coruja - 03-29-2014, 01:23 AM
RE: ON=@kill - UltimaAku - 03-29-2014 03:44 AM
RE: ON=@kill - Van Glan Bloom - 03-29-2014, 09:45 AM
RE: ON=@kill - UltimaAku - 03-30-2014, 09:16 PM

Forum Jump:


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