Alyhide
Banned User
Hey, I'm doing tutorials on easy stuff that anybody can do, and I'm not gonna make this long so here it is..
""Change the 'You are Dead.' thing.""
Go to Data < Creaturescripts < Scripts < Playerdeath
Search for this :
Now, change the "You are Dead.") to anything you want such as this..
Now, instead of it saying You are Dead, it will say, You got Pwnt. =)
""Changing the Starting Items =)""
Go to Data < Creaturescripts < Scripts < Firstitems
Search for this..
The part where it says..
Is where you set up your starting items..
If i wanted to start out with another item then you can just do this..
""Changing an Item's Attributes..""
Go to.. Data < Items < Items.xml
Now, find an item, in this instance I will be changing Soft Boots..
This is the script for Soft Boots..
Now, say you want it to gain more mana / health..
Now, that soft boots gains 100 Health per 2 seconds and 200 mana, it has no duration so it will never run out.. =)
I will be posting more from time to time =)
""Change the 'You are Dead.' thing.""
Go to Data < Creaturescripts < Scripts < Playerdeath
Search for this :
Code:
function onDeath(cid, corpse, killer)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You are Dead.")
Now, change the "You are Dead.") to anything you want such as this..
Code:
function onDeath(cid, corpse, killer)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You got Pwnt.")
Now, instead of it saying You are Dead, it will say, You got Pwnt. =)
""Changing the Starting Items =)""
Go to Data < Creaturescripts < Scripts < Firstitems
Search for this..
Code:
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems) do
doPlayerAddItem(cid, firstItems[i], 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 2651, 1)
else
doPlayerAddItem(cid, 2650, 1)
end
local bag = doPlayerAddItem(cid, 1987, 1)
doAddContainerItem(bag, 2674, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
The part where it says..
Code:
doPlayerAddItem(cid, 2651, 1)
else
doPlayerAddItem(cid, 2650, 1)
end
Is where you set up your starting items..
If i wanted to start out with another item then you can just do this..
Code:
doPlayerAddItem(cid, 2651, 1)
else
doPlayerAddItem(cid, 2650, 1) <<<< The 2650 is the Item ID
doPlayerAddItem(cid, 4529, 1) <<<< The 1 is the count of the item
end
""Changing an Item's Attributes..""
Go to.. Data < Items < Items.xml
Now, find an item, in this instance I will be changing Soft Boots..
This is the script for Soft Boots..
Code:
</item>
<item id="2640" article="a pair of" name="soft boots">
<attribute key="weight" value="800"/>
<attribute key="slotType" value="feet"/>
<attribute key="decayTo" value="6530"/>
<attribute key="transformDeEquipTo" value="6132"/>
<attribute key="duration" value="14400"/>
<attribute key="healthGain" value="5"/>
<attribute key="healthTicks" value="2000"/>
<attribute key="manaGain" value="10"/>
<attribute key="manaTicks" value="1000"/>
<attribute key="showduration" value="1"/>
</item>
Now, say you want it to gain more mana / health..
Code:
</item>
<item id="2640" article="a pair of" name="soft boots"> <<<<<< "Soft Boots" can be changed to anything that you want it to, i ussually call them, Fuck Boots.. lol
<attribute key="weight" value="800"/> <<< Weight of the item..
<attribute key="slotType" value="feet"/> <<< Slot that it goes in, Head, Armor ect..
<attribute key="transformDeEquipTo" value="6132"/>
<attribute key="healthGain" value="100"/> << Amount of Health gained per 2 seconds..
<attribute key="healthTicks" value="2000"/>
<attribute key="manaGain" value="200"/> << Amount of Mana gained per 2 seconds..
<attribute key="manaTicks" value="2000"/> << 1000 = 1 second.. 2000 = 2 seconds..
</item>
Now, that soft boots gains 100 Health per 2 seconds and 200 mana, it has no duration so it will never run out.. =)
I will be posting more from time to time =)
Last edited: