vicho815 Posted January 16, 2009 Author Share Posted January 16, 2009 dunno if that's the name but I wanted to know how to do this… (or just tell me where do I need to look in the code)instead of making a Light Cape and a speed scroll, and ALSO make a Light Cape +1 Speed, how can I do to make only the first two items and the upgraded item is made by the engine but it isn't stored in the items folder? cuz if I wan't to make it so u can upgrade ur sword till +10, then I'll have to do 11 items for EACH sword xD! plz help me... Link to comment Share on other sites More sharing options...
Akselj Posted January 16, 2009 Share Posted January 16, 2009 Sad Script could do this, I don't know how with source. Link to comment Share on other sites More sharing options...
vicho815 Posted January 16, 2009 Author Share Posted January 16, 2009 lol I don't thing u can do it with the source…I DON'T want to make a +1 sword, a +2 sword, a +3 sword etc... that's easy and can be done with sadscript but that's not what I want, I wan't it possible to make a unique item by convining with other items but not making the final item do u understand me now?? Link to comment Share on other sites More sharing options...
Techno 5.0 Posted January 16, 2009 Share Posted January 16, 2009 maybe make this a skill?you can consider it crafting Link to comment Share on other sites More sharing options...
Akselj Posted January 16, 2009 Share Posted January 16, 2009 It can be only one item with SadScript, too. Link to comment Share on other sites More sharing options...
Techno 5.0 Posted January 16, 2009 Share Posted January 16, 2009 @AkselJ:> It can be only one item with SadScript, too.but you can make multiple scripts for weapons@Ninja-Tech:> maybe make this a skill?> you can consider it craftingthis should be possiblecraftinghave 2 itemssword and fire abilitysword + fire ability = fire swordhave fire sword a new itemand just have an item for every upgrade Link to comment Share on other sites More sharing options...
vicho815 Posted January 16, 2009 Author Share Posted January 16, 2009 no xDD u don't understand what I want to do…I know it's easy to make a sword and a "fire scroll" and combine them and make a fire sword... but u should also have to do the fire sword, that would be easy... but if I want to make a "+50 strenght Sword" with strength scrolls, then Id have to do a +1 strength sword, a +2 strength sword etc etc... and I want to make every item unique so a player can do a "+1 speed +3 strength +4 magic Sword" imagine the time it would take me to do aaaall the combinations possible... Link to comment Share on other sites More sharing options...
Techno 5.0 Posted January 16, 2009 Share Posted January 16, 2009 @vicho815:> no xDD u don't understand what I want to do…> > I know it's easy to make a sword and a "fire scroll" and combine them and make a fire sword... but u should also have to do the fire sword, that would be easy... but if I want to make a "+50 strenght Sword" with strength scrolls, then Id have to do a +1 strength sword, a +2 strength sword etc etc... and I want to make every item unique so a player can do a "+1 speed +3 strength +4 magic Sword" imagine the time it would take me to do aaaall the combinations possible...lol Ooooohok well i think that be bessed with the scource…not sure thocustom windows alongside otehr scripts Link to comment Share on other sites More sharing options...
Akselj Posted January 16, 2009 Share Posted January 16, 2009 You can make it just one…. If you want me I can script it. Link to comment Share on other sites More sharing options...
Techno 5.0 Posted January 16, 2009 Share Posted January 16, 2009 @AkselJ:> You can make it just one…. If you want me I can script it.if you do script itvicho u mind if i can use aswell? Link to comment Share on other sites More sharing options...
vicho815 Posted January 16, 2009 Author Share Posted January 16, 2009 yeah.. plz script it… but I don't think it's possible with sadscript... Link to comment Share on other sites More sharing options...
Akselj Posted January 16, 2009 Share Posted January 16, 2009 It is. Link to comment Share on other sites More sharing options...
Akselj Posted January 16, 2009 Share Posted January 16, 2009 ```Sub UpgradeWep(Index, WepItemNum, UpgradeItemNum, UpgradeType)Dim WeaponUpgradesDim WeaponSTRAddDim WeaponDEFAddDim WeaponSpeedAddDim WeaponMagicAddWeaponUpgrades = GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponUpgrades", WepItemNum) + 1WeaponSTRAdd = GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponSTR", WepItemNum)WeaponDEFAdd = GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponDEF", WepItemNum)WeaponSpeedAdd = GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponSpeed", WepItemNum)WeaponMagicAdd = GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponMagic", WepItemNum)If UpgradeType = STR Then WeaponSTRAdd = WeaponSTRAdd + 1End IfIf UpgradeType = DEF Then WeaponDEFAdd = WeaponDEFAdd + 1End IfIf UpgradeType = Speed Then WeaponSpeedAdd = WeaponSpeedAdd + 1End IfIf UpgradeType = Magic Then WeaponMagicAdd = WeaponMagicAdd + 1End IfCall PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponSTR", WepItemNum, WeaponSTRAdd)Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponDEF", WepItemNum, WeaponDEFAdd)Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponSpeed", WepItemNum, WeaponSpeedAdd)Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponMagic", WepItemNum, WeaponMagicAdd)Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "StatsAdded", "No")Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "STRAdded", "0")Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "DEFAdded", "0")Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "SpeedAdded", "0")Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "MagicAdded", "0")Call TakeItem(Index, UpgradeItemNum)End Sub```In Sub OnAttack add:```Dim WeaponDim STRAddDim DEFAddDim SpeedAddDim MagicAddWeapon = Int(GetPlayerInvItemNum(Index, Int(GetPlayerWeaponSlot(index))))STRAdd = GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponSTR", Weapon)DEFAdd = GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponDEF", Weapon)SpeedAdd = GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponSpeed", Weapon)MagicAdd = GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponMagic", Weapon)If GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "StatsAdded") = "Yes" ThenElse Call SetPlayerSTR(Index, GetPlayerSTR(Index) + STRAdd) Call SetPlayerDEF(Index, GetPlayerDEF(Index) + DEFAdd) Call SetPlayerSpeed(Index, GetPlayerSpeed(Index) + SpeedAdd) Call SetPlayerMagic(Index, GetPlayerMagic(Index) + MagicAdd) Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "StatsAdded", "Yes") Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "STRAdded", STRAdd) Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "DEFAdded", DEFAdd) Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "SpeedAdded", SpeedAdd) Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "MagicAdded", MagicAdd)End If```In Sub LeftGame Add:``` Call PutVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "StatsAdded", "No") Call SetPlayerSTR(Index, GetPlayerSTR(Index) - GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "STRAdded")) Call SetPlayerDEF(Index, GetPlayerDEF(Index) - GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "DEFAdded")) Call SetPlayerSpeed(Index, GetPlayerSpeed(Index) - GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "SpeedAdded")) Call SetPlayerMagic(Index, GetPlayerMagic(Index) - GetVar("\scripts\charextras\" & GetPlayerName & ".ini", "WeaponAdd", "MagicAdded"))```MUST HAVE SUB TAKEITEM TO WORK!To make upgrade item:Make Scripted item, make it Call UpgradeWep(Index, WepItemNum, UpgradeItemNum, UpgradeType). Link to comment Share on other sites More sharing options...
vicho815 Posted January 16, 2009 Author Share Posted January 16, 2009 hmm cool but what if I sell the item to other player?? or if I drop it??Thanks for taking the time dude but I'll try to do it by the source Link to comment Share on other sites More sharing options...
ddunit Posted January 16, 2009 Share Posted January 16, 2009 Akse… You could have edited your post you lazy bum xD Link to comment Share on other sites More sharing options...
Akselj Posted January 16, 2009 Share Posted January 16, 2009 I'm lazy I agree xD 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