Other > Suggestions
A way to prevent obvious stealing.
Linoleum:
We need an upvote button for these forums, I give you +1 good sir
smoothjesus:
It's been suggested before, not to say it's a bad suggestion just that it wasn't implemented.
I'd add that if they leave your line of sight their thief status should be cleared.
z0m2h14:
It is not so hard to implement:
in client_main.fos, right after strings
--- Code: --- // Additional description
if(lookType==CRITTER_LOOK_FULL)
{
--- End code ---
include string
--- Code: --- if (cr.IsPlayer()) RunServerScriptUnsafe("unsafe@unsafe_CheckedOut", cr.Id, 0, 0, null, null);
--- End code ---
that will run server script every time you look at player with "binoculars" (standart action from context menu)
then in some module where devs keeping unsafe scripts for example in unsafe.fos we making function
--- Code: ---void unsafe_CheckedOut(Critter& player, int crId, int param1, int param2, string@ param3, int[]@ param4)
{
player.ParamBase[ST_VAR6]=player.Param[ST_VAR5];
player.ParamBase[ST_VAR5]=crId;
}
--- End code ---
that will write Id of last two chars that player was checking
then in main.fos (if thieft script still there) we making additional line
--- Code: --- if(thief.Id == cr.Param[ST_VAR5] || thief.Id == cr.Param[ST_VAR6]) success=false;
--- End code ---
that will auto falure stealing if thief char was one of two "remembered" by victum
so basicaly thats all needed for such feature, but it is better to make new variables instead of using ST_VAR5 and ST_VAR6
blahblah:
Thank you z0m2h14 for explaining how to do it. If it was a deleted suggestion then I'm sad. It's a very simple solution that affects only thieves who are obnoxious and doesn't affect people who plan ahead.
Navigation
[0] Message Index
[*] Previous page
Go to full version