Private Server: NPC for give P skills

04/05/2010 00:43 pitogas#1
Hi, I'm with a problem with the NPC to give P skills.
When the player goes to the teachers learn skills, after they go to special NPC to take P skills, but that doesn't work, doesn't give P skills or another level skill. But when I'm go with a GM char that NPC give me the P skills!

Code:
Quote:
say_title ( "Professor de Skills:" )
say ( "text" )
say ( "text" )
say ( "text" )
say ( "text" )
say ( "text" )
say ( "text" )
say ( "text" )
say ( "text" )
say ( "text" )
say ( "" )
say ( "" )
say ( "" )
say_reward ( "text" )
say_reward ( "text" )
local opzioni = select ( "Sim" , "Nao" )
if opzioni == 1 then
if pc . level >= 5 then
if pc . gold >= 1000000 then
command("setsk 1 59")
command("setsk 2 59")
command("setsk 3 59")
command("setsk 4 59")
command("setsk 5 59")
command("setsk 16 59")
command("setsk 17 59")
command("setsk 18 59")
command("setsk 19 59")
command("setsk 20 59")
command("setsk 131 10")
pc . changegold ( - 1000000 )
setskin ( NOWINDOW )
end
else
say ( "text" )
say ( "text" )
say ( "text" )
say ( "text" )
say ( "" )
say ( "" )
end
elseif opzioni == 2 then
say ( "text")
say ( "" )
say ( "" )
say ( "" )
say ( "" )
say_reward ( "text" )
say ( "" )
end
I've been put the files in: /usr/rain/channel/share_data/locale/hongkong/quest/object/20023/chat

Please help me :S
(sorry for my English, but I'm Portuguese)
04/05/2010 10:49 »DarkProphєtღ#2
1. Please dont double post.
2. No i can´t help you, Sorry.


-------

Good luck. Soul!
04/05/2010 10:55 IgorGlock#3
I think his is wrong:
local opzioni = select ( "Sim" , "Nao" )
if opzioni == 1 then
04/05/2010 11:25 FreshDevil#4
setsk is gm code
07/02/2011 18:59 RageMT2#5
you will have to use this script it works i have done it in my server.
pc . set_skill_level(1 ,59)

offcourse you know that you can replace "1" with the skill ID.

IF THIS DOESN'T WORK USE THIS:
pc.set_skill_level(1 ,59)

maybe you didn't noticed the differences but beetwen the pc and the set there are spaces in the second one there isn't.
07/02/2011 19:01 RageMT2#6
IgorGlock you are wrong ;p sorry.
but as he said when he goes with an gm char it gives him P-SKILLS.