<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Faldon Forums - Creating a NPC]]></title>
	<link rel="self" href="https://www.faldon.org/feed/atom/topic/5178/"/>
	<updated>2010-04-16T10:42:53Z</updated>
	<generator>PunBB</generator>
	<id>https://www.faldon.org/topic/5178/</id>
		<entry>
			<title type="html"><![CDATA[Re: Creating a NPC]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/64418/#p64418"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>morphine wrote:</cite><blockquote><p>Just looks like java.</p></blockquote></div><p>The syntax yes, but sadly Pawn is all procedural.</p>]]></content>
			<author>
				<name><![CDATA[Mr Spy]]></name>
				<uri>https://www.faldon.org/user/431/</uri>
			</author>
			<updated>2010-04-16T10:42:53Z</updated>
			<id>https://www.faldon.org/post/64418/#p64418</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creating a NPC]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/64396/#p64396"/>
			<content type="html"><![CDATA[<p>Just looks like java.</p>]]></content>
			<author>
				<name><![CDATA[morphine]]></name>
				<uri>https://www.faldon.org/user/85/</uri>
			</author>
			<updated>2010-04-16T03:06:25Z</updated>
			<id>https://www.faldon.org/post/64396/#p64396</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creating a NPC]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/64386/#p64386"/>
			<content type="html"><![CDATA[<p>That syntax takes me back.&nbsp; Haven&#039;t looked at a script in years.</p>]]></content>
			<author>
				<name><![CDATA[Mumblee]]></name>
				<uri>https://www.faldon.org/user/15/</uri>
			</author>
			<updated>2010-04-15T23:17:29Z</updated>
			<id>https://www.faldon.org/post/64386/#p64386</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creating a NPC]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/64377/#p64377"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Mr Spy wrote:</cite><blockquote><p>Scripts run entirely serverside, would be bad if they didn&#039;t&nbsp; <img src="https://www.faldon.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /> </p><p>You have to use the inventory manipulation functions to remove items from inventory.</p><p>new gold = gsInvHasItem( sktid, 13, 100, 0, 0); // returns the inventory slot which contains the item or 0 if player doesn&#039;t have it.</p><p>if(gold != 0) { // player has it<br />gsInvDropItem(sktid, gold, 100); // removes 100 gold<br />gsInvSend(sktid); // notify player of the update</p><p>}</p></blockquote></div><p>I know they are all server side, just wanted to know if it was done at a later stage <img src="https://www.faldon.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>and thank you! <img src="https://www.faldon.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Rader]]></name>
				<uri>https://www.faldon.org/user/403/</uri>
			</author>
			<updated>2010-04-15T21:02:03Z</updated>
			<id>https://www.faldon.org/post/64377/#p64377</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creating a NPC]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/64374/#p64374"/>
			<content type="html"><![CDATA[<p>Scripts run entirely serverside, would be bad if they didn&#039;t&nbsp; <img src="https://www.faldon.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /> </p><p>You have to use the inventory manipulation functions to remove items from inventory.</p><p>new gold = gsInvHasItem( sktid, 13, 100, 0, 0); // returns the inventory slot which contains the item or 0 if player doesn&#039;t have it.</p><p>if(gold != 0) { // player has it<br />gsInvDropItem(sktid, gold, 100); // removes 100 gold<br />gsInvSend(sktid); // notify player of the update</p><p>}</p>]]></content>
			<author>
				<name><![CDATA[Mr Spy]]></name>
				<uri>https://www.faldon.org/user/431/</uri>
			</author>
			<updated>2010-04-15T20:58:29Z</updated>
			<id>https://www.faldon.org/post/64374/#p64374</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Creating a NPC]]></title>
			<link rel="alternate" href="https://www.faldon.org/post/64373/#p64373"/>
			<content type="html"><![CDATA[<p>Okay, I downloaded Spectres&#039; script editor. Took the sample scripts for npcs, made my own, Yadda yadda.</p><p>I have looked and looked, I haven&#039;t found a command that actually takes money from a player. Is that done server side? or what am I missing here?</p><p>Any help is appreciated, thanks.</p><p>-Chris</p>]]></content>
			<author>
				<name><![CDATA[Rader]]></name>
				<uri>https://www.faldon.org/user/403/</uri>
			</author>
			<updated>2010-04-15T20:51:35Z</updated>
			<id>https://www.faldon.org/post/64373/#p64373</id>
		</entry>
</feed>
