SphereCommunity
Guild Stone Help - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Guild Stone Help (/Thread-Guild-Stone-Help)



Guild Stone Help - KyleH112 - 04-29-2016 06:21 PM

I'm having trouble opening the guild stone menu, as a GM it works fine. Yes I have searched the forums and have tried all the methods that were listed from adding the event into Sphere.ini to typing .guildmenu and also adding
ON=@DCLICK
src.guildmenu
return 1
inside the guildstone code.

I am using the default guild stone scripts as well.

The console error when I double click the stone...

Code:
04:12:ERROR:(sphere_guild_dlg_main.scp,15)Undefined keyword 'closealldialogs'
04:12:ERROR:(sphere_guild_dlg_main.scp,15)Undefined keyword 'closealldialogs'
04:12:ERROR:(sphere_guild_dlg_main.scp,15)Undefined keyword 'closealldialogs'

The script where the error is coming from...

Code:
[dialog d_Guild_Main]
5,25
src.closealldialogs
If (<type>!=t_stone_guild)
  return 1
elif (<memberfromuid.<src.uid>.uid>!=<src.uid>)&&(!<src.isgm>)
  return 1
endif
  local.charpriv=<QVAL <src.isgm> ? <def0.STONEPRIV_MASTER>:<memberfromuid.<src.uid>.priv>>
If (<local.charpriv>!=<def0.STONEPRIV_MEMBER>)&&(<local.charpriv>!=<def0.STONEPRIV_MASTER>)
  return 1
endif

I have even tried changing src.closealldialogs to src.guildmenu


RE: Guild Stone Help - Extreme - 04-30-2016 03:35 AM

ON=@DCLICK
guildmenu
return 1


RE: Guild Stone Help - KyleH112 - 05-05-2016 11:56 AM

(04-30-2016 03:35 AM)Extreme Wrote:  ON=@DCLICK
guildmenu
return 1

I tried adding that to the guild stone, but it didn't work.

Quote:[ITEMDEF 0edd]
DEFNAME=i_guildstone
TYPE=T_STONE_GUILD
VALUE=15000
//RESOURCES=4 i_rock_plain
DUPELIST=0ede
ON=@DCLICK
guildmenu
return 1



RE: Guild Stone Help - Extreme - 05-05-2016 12:03 PM

Do you have the function "closealldialogs"?
Remove it from inside the [Dialog].. This doesn't make senses.. It's opening the gump then closing...

Sent from my D6633 using Tapatalk


RE: Guild Stone Help - KyleH112 - 05-05-2016 12:09 PM

Yup, that did it. Thanks!


RE: Guild Stone Help - KyleH112 - 05-05-2016 01:28 PM

Quick question, I want to make sure I have the events correct in sphere.ini.

How should they be entered?

[EVENTS blah_blah]

EVENTS blah_blah


RE: Guild Stone Help - Extreme - 05-05-2016 10:43 PM

EventsPlayer=blah_blah,bleh_bleh,e_whatever


RE: Guild Stone Help - KyleH112 - 05-06-2016 03:49 AM

(05-05-2016 10:43 PM)Extreme Wrote:  EventsPlayer=blah_blah,bleh_bleh,e_whatever

Thanks! Veryhappy