BlazingShadow Posted August 5, 2010 Author Share Posted August 5, 2010 Ok, I want to make a sword that, when equipped, deals 3 damage to the player equiping it. I was going to make this with a script, but scripted Items can't be equipped :PSo, this is on ES or EOAny help would be appreciatedCredits will be added. Link to comment Share on other sites More sharing options...
Qazek Posted August 5, 2010 Share Posted August 5, 2010 Ok, I do this for you ;)Open Client frmEditor_Item and add:scrollbar:name - scrlItemDamagelabel:name - lblItemDamagecaption - "Damage: "Paste this to scrlItemDamage code:```Item(EditorIndex).ItemDamage = scrlItemDamage.ValuelblItemDamage.Caption = "Damage: " & scrlItemDamage.Value```Find:```Private Type ItemRec```Add to this type:``` ItemDamage As Long```Find in ItemEditorInit:``` frmEditor_Item.scrlRarity.Value = .Rarity```And add:``` frmEditor_Item.scrlItemDamage.Value = .ItemDamage```Ok now go to the ServerFind:```Private Type ItemRec```And add to this type:``` ItemDamage As Long```Find in HandleUseItem:``` Case ITEM_TYPE_WEAPON``` And under is:``` SetPlayerEquipment Index, GetPlayerInvItemNum(Index, InvNum), Weapon PlayerMsg Index, "You equip " & CheckGrammar(Item(GetPlayerInvItemNum(Index, InvNum)).Name), BrightGreen TakeInvItem Index, GetPlayerInvItemNum(Index, InvNum), 1```Add over this:``` If Item(GetPlayerInvItemNum(Index, InvNum)).ItemDamage > 0 Then SetPlayerVital Index, HP, GetPlayerVital(Index, HP) - Item(GetPlayerInvItemNum(Index, InvNum)).ItemDamage End If``` Link to comment Share on other sites More sharing options...
BlazingShadow Posted August 6, 2010 Author Share Posted August 6, 2010 CRAP!! Just realised I can't edit source cos I don't have VB6 :( :cry: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now