[Release]Banker where and when you want

06/27/2010 05:21 clad3815#1
Hello all :)

I give you an other quest =D

banker.quest

Code:
quest banker begin
	state start begin
		when 99001.use begin
		
			local s = select("Banker", "Banker Item-Shop", "Close")
			
			if s == 1 then
			
			setskin(NOWINDOW)
			game.open_safebox()
			end
			
			
			if s == 2 then
			
			setskin(NOWINDOW)
			game.open_mall()
			end
			
			
			if s == 3 then
			return
			end
			
			
		end
	end
end
give_banker.quest

Code:
quest give_banker begin
	state start begin
		when 20041.chat."You wanna -- Item Name --" with pc.level >90 begin
							
				say("You wanna this item for 100kk yang ?")
				
				local s=select("Yes !","No !")
				
				if 2 == s then
				return
				end
				
				if 1 == s then
				
					if pc.money>=100000000 then
						pc.changemoney(-100000000)
                                                say_item(99001)
						say("I give you the object, thanks")
						pc.give_item2(99001)
						
					else
					say("You haven't cash !")
					end
							
				
					
				
			end
		end
	end
end
item_proto

HTML Code:
<Item vnum="99001" hashName="'¹éÁøÁÖ'" name="-- Your item name --" type="18" subtype="10" weight="0" size="1" antiflag="106880" flag="8192" wearflag="0" immuneflag="0" gold="0" buy_price="0" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="64912" socket2="127" socket3="65008" socket4="21631" socket5="4855" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
query

PHP Code:
INSERT INTO `item_protoVALUES ('99001''-- Your item name --''-- Your item name --''18''10''0''1''106880''8192''0''''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''0''-1''-1''-1''-1''-1''-1''0''0''0'); 
And icon in Attachments :)
06/27/2010 05:28 Mars147#2
Nice but how i can Install it o.O
06/27/2010 05:41 clad3815#3
For quest you create files with notepad and you copy in /share_data/hongkong/quest

After you add name of quest in the file hongkong_list (In the folder quest).
With PuTTy use this command

Code:
cd /usr/rain/channel/share_data/hongkong/quest
./make
After in game use this command :

Code:
/reload q
For query and item_proto many tuts in the forums :)
06/27/2010 05:42 Mars147#4
item_proto = client?
06/27/2010 05:46 clad3815#5
Yes and query is in your database
06/27/2010 05:51 Mars147#6
but when i open the item_proto with notepad++ is so a index

[Only registered and activated users can see links. Click Here To Register...]


lg Marci
06/27/2010 06:16 clad3815#7
Quote:
Originally Posted by Mars147 View Post
but when i open the item_proto with notepad++ is so a index

[Only registered and activated users can see links. Click Here To Register...]


lg Marci
You need extract this with the extractor
06/27/2010 08:51 1337_Noize#8
Voll von mir geklaut... Hab die mal in einem Sammeltherad Releaset .... Find ich nicht nett :(
06/27/2010 08:59 Mars147#9
naja ich meine wen mann es schon klaut denn wenigstens auch dazuschreiben xD

naja weil es von dir its

#thx given
06/27/2010 11:52 .G0ldRaiN#10
was bringt das denn :O
06/27/2010 14:57 1337_Noize#11
Quote:
Originally Posted by .G0ldRaiN View Post
was bringt das denn :O
Blöd? Wenn man nur Ansatzweiße quest scripten kann dann weiß man es.
Du klickst auf das Item dann kommt Banl oder Itemshopbank und dann öffnet sich halt Lager-/itemshoplagerfenster....