Summon in houses. - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Summon in houses. (/Thread-Summon-in-houses) |
Summon in houses. - Lethal - 06-30-2014 08:31 AM Hi! I have the following problem: my idea is that summoning char would not be posible inside houses. A temporary solution: Code: [regiontype r_house_system] that works fine but not in all regions, (for example in Northern Minoc, where the mines are located) is that you apply the restriction that should only work inside the houses, but in some places the restriction affects the whole region and not only the interior of the houses. The strange thing is that the flags of these regions are identical to the others where this problem does not occur. Any idea? Sorry for my bad english RE: Summon in houses. - Skul - 06-30-2014 01:32 PM You need to check if the region is a multi, try this: Code: [regiontype r_house_system] RE: Summon in houses. - Lethal - 07-01-2014 02:30 AM It works fine, thx! RE: Summon in houses. - Coruja - 07-01-2014 02:42 AM try using this Code: [FUNCTION CheckSummonHouse] just add this function somewhere and use this @Start check on all summon spells: Code: [SPELL xxx] PS:I dont tested this code but maybe it works RE: Summon in houses. - Lethal - 07-02-2014 05:38 AM @Skul It works perfectly but only in the region of Minoc , where i had the problem before. @Coruja Thx!, error occurs: Code: 16:01:ERROR:(SistemaCasas.scp,102)Can't resolve <SERV.MAP(1400> try but it works in any region of the map, inside or outside the houses. Code: [FUNCTION CheckSummonHouse] RE: Summon in houses. - Skul - 07-02-2014 07:03 PM Try catching the summon on spellselect: Code: on=@spellselect RE: Summon in houses. - Lethal - 07-07-2014 03:07 AM Works! thx Skull & Coruja! |