<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NexmuTK &#187; scripting</title>
	<atom:link href="http://www.nexmutk.com/tag/scripting/feed" rel="self" type="application/rss+xml" />
	<link>http://www.nexmutk.com</link>
	<description>NexusTK Server Emulator, Atlantia MMORPG Development</description>
	<lastBuildDate>Thu, 08 Jul 2010 20:53:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to Created and Setting Your NPC&#8217;s In NexmuTK</title>
		<link>http://www.nexmutk.com/2010/01/how-to-created-and-setting-your-npcs-in-nexmutk.html</link>
		<comments>http://www.nexmutk.com/2010/01/how-to-created-and-setting-your-npcs-in-nexmutk.html#comments</comments>
		<pubDate>Thu, 21 Jan 2010 05:12:23 +0000</pubDate>
		<dc:creator>NexmuTK</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[how to scripting in nexmutk]]></category>
		<category><![CDATA[nexmutk]]></category>
		<category><![CDATA[npc]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://www.nexmutk.com/?p=239</guid>
		<description><![CDATA[This is another short tutorials on how to created and setting your own NPC&#8217;s in game. Please read tutorials carefully and follow all the step. Make sure to backup any important files before you doing this. If you have a question about scripting just leave comments on this article. 1. Get the NPC&#8217;s graphic information [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This is another short tutorials on how to created and setting your own NPC&#8217;s in game. Please read tutorials carefully and follow all the step. Make sure to backup any important files before you doing this. If you have a question about scripting just leave comments on this article.</p>
<p style="text-align: justify;">1. Get the NPC&#8217;s graphic information from BigDataBase files in documentation folders (Copyright to Adam)</p>
<p style="text-align: justify;"><a href="http://www.nexmutk.com/wp-content/uploads/2010/01/big-database-adam.jpg"><img class="aligncenter size-medium wp-image-241" title="big-database-adam" src="http://www.nexmutk.com/wp-content/uploads/2010/01/big-database-adam-300x216.jpg" alt="" width="300" height="216" /></a></p>
<p style="text-align: justify;">2. Run NexmuTK then click on NPC.</p>
<p style="text-align: justify;"><a href="http://www.nexmutk.com/wp-content/uploads/2010/01/nexmutk-npc.jpg"><img class="aligncenter size-medium wp-image-242" title="nexmutk-npc" src="http://www.nexmutk.com/wp-content/uploads/2010/01/nexmutk-npc-300x298.jpg" alt="" width="300" height="298" /></a></p>
<p style="text-align: justify;">3. Open &#8220;NexmuTK Scripting Configuration Files (*.conf)&#8221; find the files script_main.conf, This is an configuration master files. All files linked should be written on this script_main.conf first.</p>
<p style="text-align: justify;">4. Take a look on a sample configuration and scripting files to learn how to make your own NPC.</p>
<p style="text-align: justify;">5. Click on NPC Format to see the format how to created a new NPC. It&#8217;s should looks like this: <span style="text-decoration: underline;"><strong>npc:map number,graphic,color,mapx,mapy,description</strong></span><strong>. </strong>Your NPC should be save as *.scp files.<span style="text-decoration: underline;"><strong><br />
</strong></span></p>
<p style="text-align: justify;">6. After You linked between configuration files and scripting files you have to write a command for NPC. Click on scripting you will find some NPC function on there.</p>
<p style="text-align: justify;"><a href="http://www.nexmutk.com/wp-content/uploads/2010/01/scripting.jpg"><img class="aligncenter size-medium wp-image-246" title="scripting" src="http://www.nexmutk.com/wp-content/uploads/2010/01/scripting-300x298.jpg" alt="" width="300" height="298" /></a></p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>EXAMPLE</strong></span>:</p>
<blockquote>
<p style="text-align: justify;">// Karma NPC<br />
npc:2,213,0,26,20,Karma Reader</p>
<p>Declare money</p>
<p>Dialog &#8220;Apalah artinya kekuatan dan kekuasaanmu, semua itu diberikan oleh dewa. aku bisa membantu membacakan karmamu untuk melihat kekuatan jiwamu tetapi ada syaratnya kamu harus membayar aku sebesar 100 gold coin di muka.&#8221;, Next</p>
<p>Set money = getmoney()</p>
<p>if money&lt;100<br />
Dialog &#8220;maaf, untuk menggunakan jasaku kamu harus membayar 100 gold coin di muka, sepertinya uang kamu tidak mencukupi.&#8221;, None<br />
endif</p>
<p>if money==100<br />
readkarma<br />
endif</p>
<p>if money&gt;100<br />
readkarma<br />
endif</p></blockquote>
<p style="text-align: justify;">This sample has a little bug when your money more than 100 it will keep continue reading your karma until your money under 100, Don&#8217;t worry I will fix it next update by creating function readkarmaonce. You can edit and tested your script in game to make sure it follow what you need. When you meet problem please read guide from scripting.</p>
<p style="text-align: justify;">
<p style="text-align: justify;">
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.nexmutk.com%2F2010%2F01%2Fhow-to-created-and-setting-your-npcs-in-nexmutk.html&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=evil" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://www.nexmutk.com/2010/01/how-to-created-and-setting-your-npcs-in-nexmutk.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
