<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3ARemoveCoin</id>
	<title>LUA:RemoveCoin - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3ARemoveCoin"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:RemoveCoin&amp;action=history"/>
	<updated>2026-07-14T14:18:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.3</generator>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:RemoveCoin&amp;diff=6346&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;{{PageHeaderChild|LUA|RemoveCoin}}  = LUA Functions: RemoveCoin() = Removes coin from the player   ==== Syntax ==== var = RemoveCoin(param1, param2)   ==== Parameters ==== ; Requ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:RemoveCoin&amp;diff=6346&amp;oldid=prev"/>
		<updated>2016-08-10T00:08:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{PageHeaderChild|LUA|RemoveCoin}}  = LUA Functions: RemoveCoin() = Removes coin from the player   ==== Syntax ==== var = RemoveCoin(param1, param2)   ==== Parameters ==== ; Requ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PageHeaderChild|LUA|RemoveCoin}}&lt;br /&gt;
&lt;br /&gt;
= LUA Functions: RemoveCoin() =&lt;br /&gt;
Removes coin from the player&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
var = RemoveCoin(param1, param2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Spawn), ''param2'' (int32)&lt;br /&gt;
: ''param1'' is the player we want to remove coin from&lt;br /&gt;
: ''param2'' is the amount of coins to remove&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Returns ====&lt;br /&gt;
; bool&lt;br /&gt;
: True if the coin was successfully removed&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function hailed(NPC, Spawn)&lt;br /&gt;
    if IsPlayer(Spawn) and RemoveCoin(Spawn, 10) then&lt;br /&gt;
        Say(NPC, &amp;quot;I just took 10 copper from you!&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When the NPC is hailed the player will loose 10 copper&lt;br /&gt;
&lt;br /&gt;
==== Notes ====&lt;br /&gt;
Can only be use on a player.&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>