View Full Version : Server Idea
tollen
07-26-2011, 03:10 PM
I have some Ideas for a new server, is there anyway to make it so when a toon dies they loss all items equiped/inventory that are not no-drop and keep all the no-drop items?
lerxst2112
07-26-2011, 03:13 PM
Anything is possible. It just depends on how much code you're willing to write.
tollen
07-26-2011, 03:21 PM
I'm really new at this but I'm a fast learner just need to be pointed in the right direction.
"anything is possible" is a bit lacking for my question...
lerxst2112
07-26-2011, 04:29 PM
There is nothing built-in to do what you are asking. You would need to write your own custom code. You should probably start by familiarizing yourself with what happens when players die and go from there. Try the Corpse::Corpse(Client* client, sint32 in_rezexp) function.
Criimson
07-26-2011, 04:46 PM
Are you trying to say that all no-drop items are permanently lost? If so, it would be easier to write code to just run through the inventory and lose all items. To me, that would be more in line with such a hardcore penalty anyway. Would definately make dying an ouch. But you're going to seriously piss off anybody that tries to raid.
The games that have penalties such as that make it where no one wants to fight anything that isn't easy because the penalty is just too high.
tollen
07-26-2011, 05:10 PM
Are you trying to say that all no-drop items are permanently lost? If so, it would be easier to write code to just run through the inventory and lose all items. To me, that would be more in line with such a hardcore penalty anyway. Would definately make dying an ouch. But you're going to seriously piss off anybody that tries to raid.
The games that have penalties such as that make it where no one wants to fight anything that isn't easy because the penalty is just too high.
no what I want to do is have a seriese of instance zones and as you work your way through them you hit check points if you die before you make it to the next check point you loss all gear that is NOT no-drop, but the Items you get that are no-drop (which will be rare'er) you keep to try again to get to the next check point, and at each check point you have a vendor you can sell items to and buy potions or buffs or items the vendor has to help you through the next set of zones...
ps. to clear up, after you make it to the next check point you can still loss the NOT no-drop items on your next death, just you start from the last check point and not from the beginning.
trevius
07-27-2011, 02:43 AM
Well, it all depends on the details of how you want to set your server. If you plan to make it so they keep their gear on (as apposed to leaving all items on their corpse), you could just write a script that deletes all tradeable items when they return to their bind point. You would just need to make a script that iterates through all possible inventory slots (like the has_item plugin) and then have it check the no drop stat on each item it finds, then delete the item in that slot if it is tradeable.
tollen
07-27-2011, 12:30 PM
Well, it all depends on the details of how you want to set your server. If you plan to make it so they keep their gear on (as apposed to leaving all items on their corpse), you could just write a script that deletes all tradeable items when they return to their bind point. You would just need to make a script that iterates through all possible inventory slots (like the has_item plugin) and then have it check the no drop stat on each item it finds, then delete the item in that slot if it is tradeable.
this is exactly what I was thinking and you worked it out better, when you hit a new check point you will rebind there so when you die and go back you loss all NOT no-drop items when you run the script... awesome.
tollen
07-27-2011, 12:32 PM
Now is it possible to make multiple versions of the same zone, but with different loot table and mobs?
Like TOFS tier 1, TOFS tier 2 ect
Caryatis
07-27-2011, 01:38 PM
is it possible to make multiple versions of the same zone
what I want to do is have a seriese of instance zones
You answered your own question...
tollen
07-27-2011, 09:52 PM
^^
Guess I did. just not sure how yet, still learning...
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.