Hello!
I Need Help with this SuperPlayer script. Super Player are Player with GM Level 1.
I always get Errors with this Code.
Player who have a Platinum Coin get 1 Mithril Coin and GM Level 1 (is there a way that the command set the GM level to 1 permanently?)
Here's my Code (GERMAN LANGUAGE):
prontera,147,203,5 script SuperPlayer NPC 403,{
//|~~~~~~~~~~~~~ Settings of the NPC: ~~~~~~~~~~~~~~~~~
set @npcname$,"^999999[SuperPlayer]^000000";
//|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mes @npcname$;
mes "Hallo "+strcharinfo(0)+"";
mes "Du willst SuperPlayer werden? Dann bist du bei mir genau richtig!";
next;
goto L_Men;
L_Men:
mes @npcname$;
mes "Alles was du brauchst, ist ein Platinum Coin aus dem Donation Shop von der Webseite.";
mes "Hast du einen Platinum Coin und willst SuperPlayer werden?";
menu "Ja will ich!",L_Start,"Nein",L_End;
L_Start:
next;
mes @npcname$;
mes "Ich schaue eben nach ob du den Coin hast...";
if ((countitem(677) <= 0){
mes @npcname$;
mes "Du hast keinen Platin Coin. Sorry!";
close;
} else if(countitem(677) >0){
mes @npcname$;
mes "Du hast einen Coin! Willst du den jetzt eintauschen?"
menu "Ja will ich!",L_Start2,"Nein",L_End;
}
L_Start2:
next;
mes @npcname$;
mes "Okay, dann nehme ich den Coin nun und mache dich zum Super Player! Ausserdem gebe ich dir den Mithril Coin, den du beim Coin Banker eintauschen kannst.";
delitem 677,1; //Delete PlatinCoin
getitem 674,1; //Get Mithril Coin
adjgmlvl 1,"+strcharinfo(0)+"; //Set GM Level to 1
close;
L_End:
next;
mes @npcname$;
mes "Bis Bald!";
close;
}
I appreciate any help!
Thanks!
Tim
EDIT
I did it .... but the last thing I need is the GM level 1 function. Any Ideas or Help???
Thanks
prontera,147,203,5 script SuperPlayer NPC 403,{
//|~~~~~~~~~~~~~ Settings of the NPC: ~~~~~~~~~~~~~~~~~
set @npcname$,"^999999[SuperPlayer]^000000";
//|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mes @npcname$;
mes "Hallo "+strcharinfo(0)+"";
mes "Du willst SuperPlayer werden? Dann bist du bei mir genau richtig!";
next;
goto L_Men;
L_Men:
mes @npcname$;
mes "Alles was du brauchst, ist ein Platinum Coin aus dem Donation Shop von der Webseite.";
mes "Hast du einen Platinum Coin und willst SuperPlayer werden?";
menu "Ja will ich!",L_Start,"Nein",L_End;
L_Start:
next;
mes @npcname$;
mes "Ich schaue eben nach ob du den Coin hast...";
if (countitem(677) <= 0){
mes @npcname$;
mes "Du hast keinen Platin Coin. Sorry!";
close;
} else if(countitem(677) >0){
mes @npcname$;
mes "Du hast einen Coin! Willst du den jetzt eintauschen?";
menu "Ja will ich!",L_Start2,"Nein",L_End;
}
L_Start2:
next;
mes @npcname$;
mes "Okay, dann nehme ich den Coin nun und mache dich zum Super Player! Ausserdem gebe ich dir den Mithril Coin, den du beim Coin Banker eintauschen kannst.";
delitem 677,1;
getitem 674,1;
//HERE--> adjgmlvl 1,"+strcharinfo(0)+";
close;
L_End:
next;
mes @npcname$;
mes "Bis Bald!";
close;
}