Godric 0 Posted June 11, 2014 Share Posted June 11, 2014 Hi I need an quest for change a level player. Example : I click right to an item quest and my level change lvl 105 to 104. It's possible ? Thanks. Link to comment Share on other sites More sharing options...
Daenerys 175 Posted June 11, 2014 Share Posted June 11, 2014 if pc.get_level() >= 104 and pc.get_level() <= 105 then Link to comment Share on other sites More sharing options...
Risan 115 Posted June 11, 2014 Share Posted June 11, 2014 no, you need Game 36x + pc.set_level(int) is on rev 36x i have say this on skype.. Link to comment Share on other sites More sharing options...
Godric 0 Posted June 12, 2014 Author Share Posted June 12, 2014 Mmmhh I have 34083 game. But it's not possible create an query in the quest ? Because I go navicat, I go in my player. level : 105. I change 104 and ingame it's good ^^ I'am lvl 104. It's not possible create quest for this ? Thanks. Link to comment Share on other sites More sharing options...
Honorable Member .plechito' 7709 Posted June 13, 2014 Honorable Member Share Posted June 13, 2014 I didn't tested it, but i think it will work.. quest change_level begin state start begin when ITEM_ID.use begin if pc.get_level() == 105 say("Do you really change your level?") local select=select ("Yes", "No") if 1==select say("Your level was changed") pc.set_level(104) return end if 2==select return end else return end end end end Link to comment Share on other sites More sharing options...
Godric 0 Posted June 14, 2014 Author Share Posted June 14, 2014 Thanks ^^ I click right to the item (40002) and nothing Link to comment Share on other sites More sharing options...
.JαyZoN 41 Posted June 14, 2014 Share Posted June 14, 2014 Thanks ^^ I click right to the item (40002) and nothing Because the questfunc pc.set_level is not in your gamefile. Risan has already said this, you need a newer gamefile. (best way would be a precompiled 40k core with this func) Link to comment Share on other sites More sharing options...
Godric 0 Posted June 15, 2014 Author Share Posted June 15, 2014 And You are not libs/dif for this function for game 34K ? Thanks. Link to comment Share on other sites More sharing options...
Godric 0 Posted June 16, 2014 Author Share Posted June 16, 2014 UP :s Link to comment Share on other sites More sharing options...
Elijah 0 Posted November 30, 2014 Share Posted November 30, 2014 I didn't tested it, but i think it will work.. quest change_level begin state start begin when ITEM_ID.use begin if pc.get_level() == 105 say("Do you really change your level?") local select=select ("Yes", "No") if 1==select say("Your level was changed") pc.set_level(104) return end if 2==select return end else return end end end end Your quest don't work with game 40k :s Error : if pc . get_level ( ) == 105 say ( "Do you really change your level?" ) local select = select ( "Yes" , "No" ) if 1 == select say ( "Your level was changed" ) pc . set_level ( < span class = "searchlite" > 104 < / span > ) return end if 2 == select return end else return end syntax error : [string "start"]:2: `then' expected near `say' Abort trap (core dumped) Help me Link to comment Share on other sites More sharing options...
Night 366 Posted November 30, 2014 Share Posted November 30, 2014 quest change_level begin state start begin when ITEM_ID.use begin if pc.get_level() == 105 then say("Do you really change your level?") local select=select ("Yes", "No") if 1==select say("Your level was changed") pc.set_level(104) return end if 2==select return end else return end end end end try it like this Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19652 Posted November 30, 2014 Honorable Member Share Posted November 30, 2014 The "then" keywords were missed from the condition-lines. if cond then Link to comment Share on other sites More sharing options...
RachadoPT 26 Posted November 30, 2014 Share Posted November 30, 2014 does the pc.set_level function work in the vanilla core? '-' Link to comment Share on other sites More sharing options...
Night 366 Posted November 30, 2014 Share Posted November 30, 2014 does the pc.set_level function work in the vanilla core? '-' vanilla core is based on 40k src it should support this function unless it was removed by her , for depresation on because it is useless 1 Link to comment Share on other sites More sharing options...
Elijah 0 Posted December 1, 2014 Share Posted December 1, 2014 quest change_level begin state start begin when ITEM_ID.use begin if pc.get_level() == 105 then say("Do you really change your level?") local select=select ("Yes", "No") if 1==select say("Your level was changed") pc.set_level(104) return end if 2==select return end else return end end end end try it like this Don't work :s Error : if pc . get_level ( ) == 105 then say ( "Do you really change your level?" ) local select = select ( "Yes" , "No" ) if 1 == select say ( "Your level was changed" ) pc . set_level ( 104 ) return end if 2 == select return end else return end syntax error : [string "start"]:5: `then' expected near `say' Abort trap (core dumped) Link to comment Share on other sites More sharing options...
Premium V0iĐ 114 Posted December 1, 2014 Premium Share Posted December 1, 2014 The "then" keywords were missed from the condition-lines. if cond then local select=select ("Yes", "No") if 1==select say("Your level was changed") pc.set_level(104) return correct: local select=select ("Yes", "No") if 1==select then say("Your level was changed") pc.set_level(104) return Link to comment Share on other sites More sharing options...
MityQ 5 Posted December 1, 2014 Share Posted December 1, 2014 if 2==select return end if 2==select then return end Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now