View Single Post
  #1  
Old 12-26-2003, 01:42 PM
Bearik's Avatar
Bearik
Hill Giant
 
Join Date: Nov 2003
Location: Washington
Posts: 104
Default Cant get setguild to work

I'm trying to get it so this NPC puts the player into a guild after you say a few things. Heres the error i'm getting

Code:
Line: 10,File: quests/load2/170467.qst | error C0002: 'if' :syntax error : '(' 0
 '('s still not closed.
Line: 10,File: quests/load2/170467.qst | error C0007: 'setguild' : Unknown funct
ion
Line: 10,File: quests/load2/170466.qst | error C0002: 'if' :syntax error : '(' 0
 '('s still not closed.
Line: 10,File: quests/load2/170466.qst | error C0007: 'setguild' : Unknown funct
ion
It looks as if it doesn't even recognize it as a function. Heres the quest file.

Code:
  EVENT_ITEM{  
    if($item1 == "6");  
    setguild("6","5");      
    castspell("$userid","4498");}  
   }
Reply With Quote