KERVANDA JOB lwli sorma

Quick plugin :

from phBot import *
import phBotChat
from time import sleep

log("Plugin: JobSecure successfully loaded.")

# All chat messages received are sent to this function
def handle_chat(t, player, msg):
	if player:
		# System nickname
		if player == "[JobSecure]":
			# Question
			if "type the job experience" in msg.lower():
				# Answer
				reply = str(get_character_data()["job_current_exp"])
				# Reply
				sleep(1.0)
				phBotChat.Private(player,reply)
				log("Plugin: Reply the answer ["+reply+"]")
3 Likes