AllFreePapers.com - All Free Papers and Essays for All Students
Search

Quest Script

Autor:   •  April 10, 2011  •  Study Guide  •  993 Words (4 Pages)  •  2,274 Views

Page 1 of 4

// quest script (server)

x,y,face script name model,{

if (spritehatquest == 1) {

if(countitem(536) < 10) {

mes "No ice cream!";

close;

}

mes "Congrats dumbass!";

close2;

completequest 12138;

set spritehatquest,0;

end;

}

mes "Hi dumbass! 10 Ice Cream, accept quest?";

next;

if(select("Yes:No") == 2) {

mes "Bye.";

close;

}

mes "Quest accepted!";

setquest 12138;

set spritehatquest,1;

close;

}

// questid2display.txt (client)

12138#Noob#SG_FEEL#QUE_NOIMAGE#

You talked to Dumbass.#

Find 10 Ice Cream.#

// explaination

12138 is the quest ID.

NOOB is the quest title.

QUE_NOIMAGE is image/logo show in quest log, you can put pic into 'texture/don't know what shit korean/illust/'.

SG_FEEL is the quest icon.

You talked to Dumbass is the description.

Find 10 Ice Cream is the quest need.

// script explain

spritehatquest is the quest variable, i'm having sprite lemon so random named.

setquest 12138 is to give [Quest 12138] to player, logged in database.

completequest 12138 is to set [Quest 12138] state into complete, logged in database and deleted in player's quest window.// quest script (server)

x,y,face script name model,{

if (spritehatquest == 1) {

if(countitem(536) < 10) {

mes "No ice cream!";

close;

}

...

Download as:   txt (8.7 Kb)   pdf (131.4 Kb)   docx (14.8 Kb)  
Continue for 3 more pages »