Register for your free account! | Forgot your password?

You last visited: Today at 23:58

  • Please register to post and access all features, it's quick, easy and FREE!

 

[REQ] buying NPC

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2009
Posts: 28
Received Thanks: 6
[REQ] buying NPC

Hi guys!
tried to seach but i found nothing on this topic.
Is there a way to make a "buying NPC" (pretty much like the buying shops in flea)?

of at least any command like "remove_item" to make an NPC able to trade an item for another one.

Thanks!



aretheia is offline  
Old   #2
 
elite*gold: 0
Join Date: Aug 2012
Posts: 22
Received Thanks: 2
here you have 1 npc have all items new 7.4 - 8.1 items : loots ,pets ,decos ,gears mc , items shop , alot of items..






VirusTotal -
HTML Code:
https://www.virustotal.com/file/11242d4a44e0f9496e7e979ddce132208e9383c0cc35444b220035825aac5842/analysis/1348248487/
Attached Files
File Type: rar Npc Slayer- Edited by me shop menus and items.rar (10.6 KB, 98 views)


C0mpaq is offline  
Old   #3
 
elite*gold: 1
Join Date: Nov 2011
Posts: 651
Received Thanks: 104
Quote:
Originally Posted by C0mpaq View Post

VirusTotal -
HTML Code:
https://www.virustotal.com/file/11242d4a44e0f9496e7e979ddce132208e9383c0cc35444b220035825aac5842/analysis/1348248487/
i lol'd
Tofrum is offline  
Old   #4
 
elite*gold: 0
Join Date: Jan 2009
Posts: 28
Received Thanks: 6
Quote:
Originally Posted by C0mpaq View Post
here you have 1 npc have all items new 7.4 - 8.1 items : loots ,pets ,decos ,gears mc , items shop , alot of items..
Thanks you for your help but thats' not what i need
Maybe i didn't explain my problem clearly enough.
I would like to know if there is a LUA command to check in player inventory if there is a specific item and if necessary remove it.

Pretty much like the Pet enchanter NPC does for artifacts



Quote:
Originally Posted by Tofrum View Post
i lol'd
wow... i have this feeling this community needs to chill out sometimes.
He made a mistake... prolly explaining the right way to do things would have been more useful than lolling o.o
---------------------------------------------------------
When someone uses his own brain there is a chance to get a result

while thinking to an example for my last (this .,.) post Creature enchanter came into my mind, so i traced her from the database to lua scrip folder up to this script:

Code:
function Deva_artifact_insert(handle)

	dlg_title( "@91000304" )
	dlg_text( "@91000308" )

	local soulcatcher_count = find_item(710002)
	local vigor_list_count = table.getn( vigor_list )

	if soulcatcher_count < 1 then
		dlg_text( "@91000337" )

	else
		for i=1, vigor_list_count do
			if get_item_code(handle) == vigor_list[i] then

				local artifact = artifact_list[i]
				local artifact_count = table.getn( artifact )
				local select_one = math.random(1, artifact_count)
				
				delete_item( handle, 1 )
				delete_item( get_item_handle( 710002 ), 1 )
				insert_item( artifact[select_one], 1 )	
			end
		
		end
		dlg_text( "@91000340" )	
	end

	dlg_menu( "@90010003", "NPC_Creature_Enchanter_Deva_contact()" )
	dlg_menu( "@90010002", '' )
 	dlg_show()
end

As you can see there is this delete_item command. Need to dig deeper on this one, if anyone does know how it works and is willing to share i'd be grateful
aretheia is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Buying] Buying Tera Online EU Account, Payment via PayPal.
Hi, I'm looking for a Tera EU account. Level and item doesn't matter, since I will be making my own character and play with it. Usually looking...
4 Replies - Trading
Mercury US: Buying 105-140 cabal account with nice gear/ Buying alz.
Ok, My account recently got another block error, So i made a new one and the leveling is tiresome, So i'm looking for a well geared 105+ if not...
1 Replies - Cabal Online Trading
buying dbz 1,7 ud each buying upto 100 or buying 2 soc items message me thanks
Server Royalty_EU i dont go first i pay useing paypal message me thanks and merry christmas to all.
1 Replies - Conquer Online 2 Trading
BUYING Guild wars factions keys! Also buying accounts!
Buying GW factions keys! AND Buying GW accounts! ONLY paying in guild wars ectos/money/z-keys reply to this topic with account info. Pm...
7 Replies - Guild Wars Trading



All times are GMT +2. The time now is 23:58.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2017 elitepvpers All Rights Reserved.