RodRich
Members-
Content Count
38 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Staff Applications
Calendar
Everything posted by RodRich
-
@@Ricauter That's because you didn't closed the "()" copy and paste : - script test1 -1,{ OnNPCKillEvent: set .@map$, "prontera"; if(strcharinfo(3)==.@map$){ if(getmonsterinfo(killedrid,0)==getmonsterinfo(1008,0)){ // PLEASE THIS WAY IS THE RIGHT WAY DON'T CHANGE AGAIN '-' set f1ks,f1ks +1;// to count +1 kills; announce "PORINGS KILLED +1 ["+ f1ks +"/5]",3; } if (f1ks >= 5){ set f1ks,f1ks=0; //to reset the counter and buff sc_start 10, 240000,10; }}end;}
-
The zero doesn't mean the monster ID, that's aboout the killedrid opition, then that should be 0!! try this way instead: if(getmonsterinfo(killerid,0)==getmonsterinfo(1008,0)){
-
I found some issues, make this way: - script test1 -1,{ OnNPCKillEvent: set .@map$,"prontera"; if(strcharinfo(3)== .@map$){ if(getmonsterinfo(killerid,0)=="Poring"){ //u had put 1008, here and have to be '0' set f1ks,f1ks +1;// to count +1 kills; announce "PORINGS KILLED +1 ["+f1ks+"/5]",3; } if (f1ks >= 5){ set f1ks,0; //if you put '1' here, the count will start at 2 sc_start 10, 240000,10; }}end;}
-
@@Ricauter so did it work??
-
yes xD but I mean the problem is that the console is saying that there's a syntax error on the 1st line, and that it doesn't recognize the OnNPCKillEvent: syntax I know it was OnNPCKillEvent, but why doesn't it recognize it as valid? Ah ok, because when you get errer from first line, the npc isn't readed. I think your error is case sensitive: -<tab>Script<tab>test1<tab>-1,{ try: -<tab>script<tab>test1<tab>-1,{
-
I guess you're using the <tab> key form you keyboard where you wrote <tab> (you have to) but this line is wrong: <tab><tab><tab>announce "PORINGS KILLED +1 ["f1@ks"/5]",3 do this way: <tab><tab><tab>announce "PORINGS KILLED +1 ["+f1@ks+"/5]",3; @pS: Maybe you can't use '@' in midle of a variable, idk, try this way first and tell me!!
-
You should use <tab> instead <space bar> for while that's it! =D P.s: you don't need to put a map if you don't want!! you can do this way: -<tab>script<tab>npcname<tab>-1,{
-
Ah ok, that simple either!! You can do this way: OnNPCKillEvent:if(strcharinfo(3)== 'map'){if(getmonsterinfo(killedrid,0) == 'monstername'){ set mymobkills,mymobkills +1;// to count +1 kills }} if (mymobkills > 99){ set mymobkills,0; //to reset the counter and buff? sc_start 39, 60,5; getitem,-1,1;}end; where -1 means: a random item from OBB.. or if you preffer you can also use: -2,-3,-4,-5 Giving an item ID of -2 will produce the effects of Old Violet Box. Giving an item ID of -3 will produce the effects of Old Card Album. Giving an item ID of -4 will produce the effects of Gift Box. Giving an item ID of -5 will produce the effects of Worn Out Scroll, which, in current SVN, drops only Jellopies anyway.
-
Exaclty!! about you last question, I'm sorry could you say without abreviation? 'cause my english is not so good!!
-
Just a question: what you mean with 'X' >>> number of mobs, or a specifc one?? a specific one then do something like this: OnNPCKillEvent:if(strcharinfo(3)== 'map'){ if(getmonsterinfo(killedrid,0) == 'monstername'){ sc_start 39, 60,5; //buff 39(id), 60(time), 5 (skill level)
-
Just a question: what you mean with 'X' >>> number of mobs, or a specifc one??
-
Yeah that's it!! Who should get the item?? 'Beacause like he said: It's a automatic script ,and at the began there's no player attached!!
-
Hey guys... First, apollogies for my english... I'm looking for you help in here, 'cause no one could helped me in my idiom!! My problem is: I'm typing a script that sumons some mvp's ... and those monster have a Label!! at their Label, I'm trying to make the npc to annunciate: "Char's name has killed the MVP's name". But instead to annunciate a MvP's name, it's showing the mob's name. Example: For Baphomet the npc's announce is Like that: "James has killed Baphomet Jr." instead "James has killed Baphomet" My script: OnKILLMOB: $mob--; announce strcharinfo(0)+" has killed "+getmonsterinfo(killedrid,0),bc_yellow; I also has tried like this: OnKILLMOB: if ( getmonsterinfo(killedrid,MOB_MVPEXP) ){ announce strcharinfo(0)+" has killed "+getmonsterinfo(killedrid,0),bc_yellow;} But this way doesn't annunciate anything. And I tried to do instead at monster label (OnKILLMOB:), do this at event (OnNPCKillEvent:) but anyway that's works!! So I hope you can help me!! Once again, I'm sorry about my english!!