Jump to content

[PETICIÓN] Quest de equipamiento.


Recommended Posts

Buenas, quería solicitar si alguien me podría modificar una quest que cuando se conecte un nuevo personaje en el servidor se le ejecute el comando "do_item_full_set" sin necesidad de tener GM.

 

quest give_basic_weapon begin
	state start begin
		function basic_item(job,index)
			item_list={}	
			item_list[0] = {50187} 
			item_list[1] = {50212}
			item_list[2] = {50187}
			item_list[3] = {50213}
			return  item_list[job][index]
		end

		when login begin
			if pc.getqf("basic_weapon") == 0 then
				pc.setqf("basic_weapon", 1)

				if pc.countitem(item) == 0 and pc.weapon != item then
					pc.give_item2(give_basic_weapon.basic_item(pc.job,1) )
				end
			end
		end
		end
		end

 

Saludos y gracias de antemano!

Link to comment
Share on other sites

  • 2 months later...

#### Src/game/cmd.cpp

//Search:

{ "full_set",	do_full_set, 0, POS_DEAD,		GM_LOW_WIZARD},

 

And change it to:

{ "full_set",	do_full_set, 0, POS_DEAD,		GM_PLAYER},

 

 

quest:

quest give_basic_weapon begin
	state start begin
		when login begin
			command("/full_set")
			set_state(__COMPLETE__)
		end
	end

	state __COMPLETE__ begin
	end
end

 

 

***But this is so bad. How will you avoid\block players from spam and sell items with  the command /full_set?   

Everytime they tipe that, they get all items.

 

Maybe this is NOT what you need

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...