• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Stary system rzucania spearami

Aeven


Joined
Dec 29, 2010
Messages
335
Reaction score
4
Cześć.

Szybkie pytanko:

Czy da się jakoś przywrócić stary system rzucania spearami? Chodzi o spadanie ich na ziemie, a nie automatyczne wracanie do ręki.
Jeśli się da - to jak?

trunk.r3840
 
Zawsze można napisać skrypt, który usuwałby 1 spear z ręki i tworzył go pod potworem..
 
Oczywiście że tak. Chciałem się tylko upewnić czy jest jakiś inny sposób.
 
PHP:
function onAttack(cid, target)    local pos = getThingPosition(target)    local uid = doCreateItemEx(XXXX, 1)    if (getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid == XXXX) then        doRemoveItem(getPlayerSlotItem(cid, CONST_SLOT_RIGHT).uid, 1)        doTileAddItemEx(pos, uid)    elseif (getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid == XXXX) then        doRemoveItem(getPlayerSlotItem(cid, CONST_SLOT_RIGHT).uid, 1)        doTileAddItemEx(pos, uid)    end    return true end
Nie sprawdzane, ale może zadziałać - lub tak mi się wydaje. Wystarczy tylko pod te krzyżyki podstawić ID twojej włóczni (ang. "spear"). Jak to się mówi pisane na kolanie.​
 
169-e6bc290ff23a38675d27722f0b636e59.jpg


czy to bedzie slowo TRUE?
 
items.xml
Code:
	<item id="2389" article="a" name="spear" plural="spears">
		<attribute key="weight" value="2000"/>
		<attribute key="attack" value="25"/>
		<attribute key="weaponType" value="distance"/>
		<attribute key="shootType" value="spear"/>
		<attribute key="ammoAction" value="move"/>
		<attribute key="range" value="5"/>
		<attribute key="breakChance" value="50"/>
 
Back
Top