Guilde alırken üye onay butonu tarzı bir şey yapmaya çalıştım ancak menü gelmesine karşın onayladığında üye olmuyor. Konsolda aldığım hata şöyle

ERROR:(sphere_guild_functions.scp,17)Can't resolve <ref1.type>


scriptler şöyle

guild stone
[ITEMDEF 0edd]
//gravestone = Guildstone
DEFNAME=i_guildstone
TYPE=T_STONE_GUILD
VALUE=15000
//RESOURCES=4 i_rock_plain
FLIP=1
CATEGORY=Decoration - Dungeons and The Dead
SUBSECTION=Graves & Gravestones
DESCRIPTION=GraveStone (Guildstone)
DUPELIST=0ede

On=@TargOn_Char
src.newitem i_gs_recruit
src.act.cont <src.targ.uid>
src.act.more1 <src.uid>
src.act.more2 <uid>
src.act.timer 1
return 1


guild menü
[dialog d_Guild_Main]
5,25
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

//----The Gump----
page 0
resizepic 0 0 5054 550 400
resizepic 10 10 3000 530 380
dhtmlgump 20 15 220 35 0 0 Guild: <name>
  If (<masteruid>)
    local.mastername=<mastergendertitle>: <qval (<eval strlen(<mastertitle>)>) ? <mastertitle> :><master>
    dhtmlgump 275 15 250 20 0 0 <local.mastername>
  endif

dhtmlgump 55 50 100 20 0 0 Loyal to: 
local.loyalto=<memberfromuid.<src.uid>.loyalto>
dhtmlgump 55 70 470 20 0 0 <qval (!<local.loyalto>)||(<local.loyalto>==<src.uid>) ? yourself:<uid.<local.loyalto>.name>>
  button 20 50 4005 4007 1 0 1 

dhtmlgump 275 50 470 20 0 0 Display guild abbreviation: <abbrev>
dhtmlgump 275 70 90 20 0 0 Currently: <AbbreviationToggle>
  button 240 50 4005 4007 1 0 2

dhtmlgump 55 100 240 30 0 0 View the current roster.
  button 20 100 4005 4007 1 0 3

dhtmlgump 55 130 240 30 0 0 Recruit someone into the guild.
  button 20 130 4005 4007 1 0 4

If (<member.count <def0.STONEPRIV_CANDIDATE>>)
  button 20 160 4005 4007 1 0 5
  dhtmlgump 55 160 380 30 0 0 View list of candidates who have been sponsored to the guild.
else
  button 20 160 4020 4020 0 0 0 
  dhtmlgump 55 160 320 30 0 0 There are currently no candidates for membership.
endif

dhtmlgump 55 220 240 30 0 0 View the guild's charter.
  button 20 220 4005 4007 1 0 6
dhtmlgump 55 250 240 30 0 0 Resign from the guild.
  button 20 250 4005 4007 1 0 7
dhtmlgump 55 280 240 30 0 0 View the guild's wartime status.
  button 20 280 4005 4007 1 0 8

If (<src.isgm>)||(<masteruid>==<src.uid>)
  button 20 310 4005 4007 1 0 9
  dhtmlgump 55 310 240 30 0 0 Access guildmaster functions.
else
  button 20 310 4020 4020 0 0 0
  dhtmlgump 55 310 240 30 0 0 Reserved for guildmaster.
endif

dhtmlgump 55 360 470 30 0 0 EXIT
  button 20 360 4005 4007 1 0 0

[dialog d_Guild_Main Button]
ON=0 9
If (<argn1>==0) // Exit Gump
  return 1
endif

If (<argn1>==1 )	// Declare LoyalTo Dialog
  sdialog d_Guild_CharList,0,<def0.GUILDDLG_LISTTYPE_LOYALITY>
elif (<argn1>==2)	// Abbreviation Switch
  toggleabbreviation <src.uid>
  sdialog d_Guild_Main,0,<uid>
elif (<argn1>==3)	// Roster List
  sdialog d_Guild_CharList,0,<def0.GUILDDLG_LISTTYPE_ROSTER>
elif (<argn1>==4)	// Recruit New Member
  //src.targetf f_guildsys_recruitguy <uid>
target
 // src.sysmessage Select a character to recruit
elif (<argn1>==5)	// Candidates list
  sdialog  d_Guild_CharList,0,<def0.GUILDDLG_LISTTYPE_CANDIDATES>
elif (<argn1>==6)	// Guild charter
  sdialog d_Guild_ViewCharter,0,<uid>
elif (<argn1>==7)	// Resign
  resign
elif (<argn1>==8)	// Enemies
  sdialog d_Guild_WarfareStatus,0,<uid>
elif (<argn1>==9)	// Guildmaster Menu
  If (<src.isgm>)||(<masteruid>==<src.uid>)
    sdialog d_Guild_Master,0
  endif
endif
return 1

[itemdef i_gs_recruit]
name guild recruiter
weight 0
id i_gold
type t_eq_script
layer layer_special

On=@UnEquip
try src.act <more2>
try src.dialog d_gs_recruit
return 1

On=@Timer
remove
return 1



[dialog d_gs_recruit]
-100,-100
nomove

resizepic 190 165 5120 275 155
resizepic 200 175 3000 255 135

htmlgump 215 188 223 60 0 1 1
htmlgump 258 257 140 20 1 0 0
htmlgump 258 277 150 20 2 0 0
button 225 255 4006 4007 1 0 1
button 225 275 4018 4019 1 0 0

[dialog d_gs_recruit text]
<uid.<findid.i_gs_recruit.more1>.name> tarafindan <act.name> guild'ine davet edildiniz. Bu 

guild'e katilmak istiyor musunuz?
Evet
Hayir

[dialog d_gs_recruit button]
On=1
if (<act.distance> > 3)
	sysmessage Guild stone'a yeterince yakin degilsiniz.
else
	try tag.gs_title
	src.f_guildsys_recruitguy <uid>
endif



f_guildsys_recruitguy fonksiyonu
[FUNCTION f_guildsys_recruitguy]
ref1 = <args>

If (<ref1.type> != t_stone_guild)
  return 1
elif ((<ref1.masteruid> != <uid>) && (<ref1.memberfromuid.<uid>.priv> != <def0.STONEPRIV_MEMBER>) && (!<isgm>))
  sysmessage @038a Only guild members can recruit new players.
  return 1
elif (<argo.isItem>)
  sysmessage @038a You may only recruit players into the guild.
  return 1
elif (!<argo.isPlayer>)
  sysmessage @038a You may only recruit players into the guild.
  return 1
elif (<argo.flags>&<def.statf_dead>)
  sysmessage @038A Only the living may be recruited.
  return 1
endif
If (<argo.memoryfindtype.<def0.memory_guild>.uid>)
  If (<argo.memoryfindtype.<def0.memory_guild>.link> == <ref1.uid>)
    sysmessage @038A They are already a guildmember!
  else
    sysmessage @038A You can only recruit candidates who are not already in a guild.
  endif
  return 1
endif

If (<ref1.memberfromuid.<argo.uid>.uid> != <argo.uid>)
  If ((<ref1.masteruid> == <uid>) || (<isgm>))
    If (<def0.GUILDCONFIG_MAXMEMBERS>)
      If (<ref1.member.count <def0.STONEPRIV_MEMBER>> < <def0.GUILDCONFIG_MAXMEMBERS>)
        f_guildsys_addchartoguild <ref1.uid>,<argo.uid>,1
      else
        sysmessage @038A There are already <dDEF0.GUILDCONFIG_MAXMEMBERS> members. You cannot submit a member at this time.
      endif
    else
      f_guildsys_addchartoguild <ref1.uid>,<argo.uid>,1
    endif
  else
    If (<def0.GUILDCONFIG_MAXCANDIDATES>)
      If (<ref1.member.count <def0.STONEPRIV_CANDIDATE>> < <def0.GUILDCONFIG_MAXCANDIDATES>)
        f_guildsys_addchartoguild <ref1.uid>,<argo.uid>,0
      else
        sysmessage @038A There are already <dDEF0.GUILDCONFIG_MAXCANDIDATES> candidates awaiting a decision. You cannot submit a candidate at this time.
      endif
    else
      f_guildsys_addchartoguild <ref1.uid>,<argo.uid>,0
    endif
else
  sysmessage @038A They are already a candidate.
endif
Konu yardım alanına taşınmıştır.

Üye Ol veya Giriş Yap

Bu forum başlığına mesaj atmak istiyorsanız hemen üye olun veya giriş yapın.