Jump to content

[PETICIÓN] Quest de equipamiento.


Mensajes recomendados

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!

Enlace para comentar
Compartir en otros sitios

  • 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

Enlace para comentar
Compartir en otros sitios

Unirse a la conversación

Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.

Guest
Responder a este tema...

×   Has pegado contenido con formato .   Eliminar formato

  Only 75 emoji are allowed.

×   Tu enlace se ha incorporado automáticamente.   Mostrar un enlace en su lugar

×   Se ha restaurado el contenido anterior. .   Borrar editor

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

  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...