Jump to content
  • 0

is this possible?


Question

Posted

NPC that grants permission to GMs to have the @item commands.

Description :

NPC that grants GMs to have @item commands for the whole day.

Minimum Level GM required can be adjusted.

every item created by the GMs will be logged at the database.

for example i set the Minimum GM level to 60(Event GMs) a lv60 GM can talk to the npc to have @item command for the whole day, and every item that he creates will be logged, another way to prevent corruption, I guess.

5 answers to this question

Recommended Posts

Posted (edited)

NPC that grants permission to GMs to have the @item commands.

Description :

NPC that grants GMs to have @item commands for the whole day.

Minimum Level GM required can be adjusted.

every item created by the GMs will be logged at the database.

for example i set the Minimum GM level to 60(Event GMs) a lv60 GM can talk to the npc to have @item command for the whole day, and every item that he creates will be logged, another way to prevent corruption, I guess.

You could create an NPC that would allow that GM to create an item with the function of disabling some items from being in it.

Here's a rough script I made, though it hasn't been tested.

prontera,157,190,4 script Item Creator 793,{
if(getgmlevel()<60) end;
if(Created >= .MaxCreate) end;
mes "Hello GM "+ strcharinfo(0) +"!";
dispbottom "You currently have " +(.MaxCreate - @Created)+" item creations left.";
next;
mes "Please input the Item you would like to create.";
next;
input .@item;
if(.@item == .Blacklist) { 
mes "Sorry, that item has been banned by the creator"; 
close; 
} else {
mes "Your item has been created";
getitem .@item,1;
set @Created, @Created + 1;
close;
}

OnInit:
setarray .@Blacklist,1599,2199;
for ( set .@i, 0; .@i < getarraysize(.@Blacklist); set .@i, .@i +1 )
set .Blacklist, .Blacklist + (.@Blacklist$[.@i]);
set .MaxCreate,15;
end;

OnClock0000:
set Created,0;
end;
}

Edited by iFoxkun
Posted

NPC that grants permission to GMs to have the @item commands.

Description :

NPC that grants GMs to have @item commands for the whole day.

Minimum Level GM required can be adjusted.

every item created by the GMs will be logged at the database.

for example i set the Minimum GM level to 60(Event GMs) a lv60 GM can talk to the npc to have @item command for the whole day, and every item that he creates will be logged, another way to prevent corruption, I guess.

You could create an NPC that would allow that GM to create an item with the function of disabling some items from being in it.

Here's a rough script I made, though it hasn't been tested.

prontera,157,190,4 script Item Creator 793,{
if(getgmlevel()<60) end;
if(Created >= .MaxCreate) end;
mes "Hello GM "+ strcharinfo(0) +"!";
dispbottom "You currently have " +(.MaxCreate - @Created)+" item creations left.";
next;
mes "Please input the Item you would like to create.";
next;
input .@item;
if(.@item == .Blacklist) {
mes "Sorry, that item has been banned by the creator";
close;
} else {
mes "Your item has been created";
getitem .@item,1;
set @Created, @Created + 1;
close;
}

OnInit:
setarray .@Blacklist,1599,2199;
for ( set .@i, 0; .@i < getarraysize(.@Blacklist); set .@i, .@i +1 )
set .Blacklist, .Blacklist + (.@Blacklist$[.@i]);
set .MaxCreate,15;
end;

OnClock0000:
set Created,0;
end;
}

I will try this later. thanks

Posted

I wouldn't recommend that script o.o.

It won't work like it is supposed to do.

First:

Temporary Character Variable > @Created

will be reseted on relogin.

Second:

OnClock0000:

set Created,0;

end;

Will not work out, since this would require an player attached > Permanent Character variable

which would be correct.

But in this case an timer would be more wise.

Well I'm not smart in mathematics so I won't make an script for that since it would require to calculate till midnight or like that.

An 1 day delay timer would be easy^^.

Well there are also other ways, but I would have to figure them out first >_>.

Regards,

Chris

Posted

i dont think this part will work fully in your script...since you are using the array to list all those Blacklisted items..and your script only check for the 1st Blacklisted items....which mean that users allow to create those other blacklisted items...

input .@item;
if(.@item == .Blacklist) { 

anyway..you could try it like this...

input .@item;
for( set .@i,0; .@i < getarraysize( .Blacklist ); set .@i,.@i + 1 ){
if( .@item == .Blacklist[.@i] ){
mes "You cant create this iitems.";
close;
}


ERROR Part

OnClock0000:
set Created,0;
end;
}

this will return you error...coz the script unable to attach a players...that variable is a player variable.....

beside...it doesnt match with other variable you have created inside your script....

setarray .@Blacklist,1599,2199;

this part..i dont think using a .@ variable would be appopriate here...

i guess you should use a NPC scope variable..so that the lists / data saved is not removed upon the conversation between NPC and players is finished.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...