Sphereserver / Source-X

Ultima Online server emulator
Apache License 2.0
53 stars 40 forks source link

t_multi_custom remove #1232

Open Steinny opened 2 months ago

Steinny commented 2 months ago

After remove t_multi_custom I can't build new a house .xshow houses return 0 but i have msg "House redeeded. You already own..." - its hardcoded msg. after save and restart server. all work correct.

AtillaG1 commented 2 months ago

I reported this long time ago, and it was fixed. Maybe the problem is back? History: https://github.com/Sphereserver/Source-X/issues/895 https://github.com/Sphereserver/Source-X/commit/ba966c81e78d8c2df21e2c6fa3bab4997cd73f44

Steinny commented 2 months ago

I downloaded the new version now and the problem remained

Steinny commented 2 months ago

FIX

[EVENTS e_player_generic_event]
//Generic event to all players

On=@AddMulti
    // - argn1 = Multi Count (The total number of slots used for this multi, the same slots used for MaxHousesAccount, MaxHousesPlayer, etc)
    // - argn2 = The default priv for SRC on this multi (See defname house_privs).
    // - argn3 = Indicates wether the argn1 value should change the char's count of slots or not (It's 1 by default only if argn2 == hp_owner).
    // - return 1 (Only for @AddMulti): Prevents this multi from being added to SRC's house storage (Which means having it in "houses.N.key", etc).

On=@DelMulti
    if (<argo.type> == t_multi) || (<argo.type> == t_multi_custom) || (<argo.type> == t_ship) 
        argn2 = 1
        argn3 = 1
    endif