Register for your free account! | Forgot your password?

You last visited: Today at 17:39

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

 

PNJ sell spawn

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2011
Posts: 259
Received Thanks: 19
PNJ sell spawn

Hi I managed to introduce a NPC boss who invoked the problem is that I can not make them pay I use Lua to do someone can help me?



darckistyle is offline  
Old   #2
 
elite*gold: 0
Join Date: Apr 2010
Posts: 86
Received Thanks: 2
what do u mean by i can not make them pay ?


bouldog60 is offline  
Old   #3
 
elite*gold: 0
Join Date: Jul 2011
Posts: 259
Received Thanks: 19
I want people to pay, to invoke a boss
darckistyle is offline  
Old   #4
 
elite*gold: 0
Join Date: Apr 2010
Posts: 86
Received Thanks: 2
send me pnj ill make them pay :P


bouldog60 is offline  
Old   #5
 
elite*gold: 0
Join Date: Jul 2011
Posts: 259
Received Thanks: 19
I send by mp

Still not finding can you help?
darckistyle is offline  
Old   #6
 
elite*gold: 0
Join Date: Oct 2010
Posts: 2,557
Received Thanks: 2,411
You will need to pick an NPC and construct a menu system for it via LUA (I'm not going to teach you don't bother asking, sorry.) Then using a basic knowledge of the console commands like add_npc you will find it rather easy to accomplish this task.
ismokedrow is offline  
Old   #7
 
elite*gold: 0
Join Date: Jul 2011
Posts: 259
Received Thanks: 19
I have the NPC, which invokes the boss, but it brings up the boss for free

I have created the NPC in the database and creates the script Lua already, the problem is that I can not make a payment, the invocations of boss
darckistyle is offline  
Old   #8
 
elite*gold: 0
Join Date: Oct 2010
Posts: 2,557
Received Thanks: 2,411
You need a payment system to check and update gold prices.
ismokedrow is offline  
Old   #9
 
elite*gold: 0
Join Date: Jul 2011
Posts: 259
Received Thanks: 19
here is my Lua

NPC Boss
Quote:
function get_module_name()
return "NPC_Boss"
end

function NPC_Merchant_crushop_Boss_contact()
dlg_title( "Shiva" )
dlg_text( "Je vends des boss a 10 millions!" )
dlg_menu( "Soulseeker", 'add_npc(116353 , 89758,9108022, 1)' )
dlg_menu( "Takin", 'add_npc(116353 , 89758,9110015, 1)' )
dlg_menu( "Raa", 'add_npc(116353 , 89758,145010, 1)' )
dlg_menu( "Furion", 'add_npc(116353 , 89758,9158002, 1)' )
dlg_menu( "Tamahakan", 'add_npc(116353 , 89758,9170001, 1)' )
dlg_menu( "Toktok", 'add_npc(116353 , 89758,9190001, 1)' )
dlg_menu( "Al-Ibkha,", 'add_npc(116353 , 89758,110102, 1)' )
dlg_menu( "Batisse", 'add_npc(116353 , 89758,120102, 1)' )
dlg_menu( "Amarlys", 'add_npc(116353 , 89758,130102, 1)' )
dlg_menu( "Nowpielon", 'add_npc(116353 , 89758,140102, 1)' )
dlg_menu( "Anatos", 'add_npc(116353 , 89758,150102, 1)' )
dlg_menu( "Tiarla", 'add_npc(116353 , 89758,160102, 1)' )
dlg_menu( "Ilros", 'add_npc(116353 , 89758,170102, 1)' )
dlg_menu( "Grewpain", 'add_npc(116353 , 89758,185001, 1)' )
dlg_menu( "Au revoir", '' )
dlg_show()
end
how it's done?? Can you help me?
darckistyle is offline  
Old   #10
 
elite*gold: 0
Join Date: Oct 2010
Posts: 2,557
Received Thanks: 2,411
Quote:
Originally Posted by darckistyle View Post
here is my Lua

NPC Boss


how it's done?? Can you help me?
Code:
function example_one()
 dlg_title("Example NPC")
 dlg_text("Example NPC Text <This will appear in the NPC's dialogue box.>")
 dlg_menu("Mob Spawn - xxk", 'spawn_mob()' )
 dlg_menu("Mob Spawn 2 - xxk", 'secondary_spawn_mob()' )
 dlg_menu("Nevermind", "")
 dlg_show()
end

function spawn_mob()
 local gold = get_value("gold")
 gold = tonumber(gold)

 if gold > xx then
 add_npc(x, y, mob_id, 1)
 sv("gold", gold-xx)
 update_gold_chaos()
 cprint("You have spawned a Monster.")
end
end

function secondary_spawn_mob()
 local gold = get_value("gold")
 gold = tonumber(gold)

 if gold > xx then
 add_npc(x, y, mob_id, 1)
 sv("gold", gold-xx)
 update_gold_chaos()
 cprint("You have spawned a Monster.")
end
end
ismokedrow is offline  
Old   #11
 
elite*gold: 0
Join Date: Jul 2011
Posts: 259
Received Thanks: 19
can I do?? please because I took a long time to do what the script I'm new to Lua
darckistyle is offline  
Old   #12
 
elite*gold: 0
Join Date: Oct 2011
Posts: 7
Received Thanks: 0
ismokedrow thank you very much it helped a lot Sorry for my english I'm a French guy


AndrioX9 is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Guide] Unique spawn Area & Multi-spawn! & hints to Add New Uniqes ! [Vsro]
Please Follow this thread, this topic OUTDATE and it have alot of wrong information...
31 Replies - SRO PServer Guides & Releases
PNJ sell spawn
hello I would like to know how to introduce a sales boss? someone buys a boss and is invoked before him bonjour je voudrais savoir comment...
0 Replies - Rappelz
[SELL]Nice S4 league acc[SELL] oder Tausche gegen Cmbat arms acc
Hey Leute! Ich möchte mein acc vk. Die bilder sind in dem ordener Link------>MEGAUPLOAD - The leading online storage and file delivery service...
6 Replies - S4 League Trading



All times are GMT +2. The time now is 17:39.


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.